[Scummvm-cvs-logs] SF.net SVN: scummvm: [32351] scummvm/trunk/base/plugins.h

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed May 28 22:31:02 CEST 2008


Revision: 32351
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32351&view=rev
Author:   thebluegr
Date:     2008-05-28 13:31:01 -0700 (Wed, 28 May 2008)

Log Message:
-----------
Added a note about the MSVC quirk with the spaces around ENABLE_##ID

Modified Paths:
--------------
    scummvm/trunk/base/plugins.h

Modified: scummvm/trunk/base/plugins.h
===================================================================
--- scummvm/trunk/base/plugins.h	2008-05-28 20:30:20 UTC (rev 32350)
+++ scummvm/trunk/base/plugins.h	2008-05-28 20:31:01 UTC (rev 32351)
@@ -81,6 +81,12 @@
 #define STATIC_PLUGIN 1
 #define DYNAMIC_PLUGIN 2
 
+// Note: The spaces around ENABLE_##ID have been added on purpose for
+// MSVC. For some reason, MSVC tries to add the parenthesis after
+// ENABLE_##ID to the check, thus making it false all the time.
+// Please do NOT remove them, otherwise no engine plugins will be
+// registered under MSVC
+
 #define PLUGIN_ENABLED_STATIC(ID) \
 	(defined( ENABLE_##ID ) && !PLUGIN_ENABLED_DYNAMIC(ID))
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list