mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-14 04:30:43 +00:00
Added a note about the MSVC quirk with the spaces around ENABLE_##ID
svn-id: r32351
This commit is contained in:
parent
885fa54f28
commit
c9fd5fef76
@ -81,6 +81,12 @@ extern int pluginTypeVersions[PLUGIN_TYPE_MAX];
|
|||||||
#define STATIC_PLUGIN 1
|
#define STATIC_PLUGIN 1
|
||||||
#define DYNAMIC_PLUGIN 2
|
#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) \
|
#define PLUGIN_ENABLED_STATIC(ID) \
|
||||||
(defined( ENABLE_##ID ) && !PLUGIN_ENABLED_DYNAMIC(ID))
|
(defined( ENABLE_##ID ) && !PLUGIN_ENABLED_DYNAMIC(ID))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user