aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorFilippos Karapetis2008-05-06 17:30:52 +0000
committerFilippos Karapetis2008-05-06 17:30:52 +0000
commitc396694f3b4378c26b1157fa069a60c21080cb08 (patch)
tree905b2aec25f2e8a33aa7d3a53f638da89cfbd9e2 /base
parent2ee01bf757ace2cf24835c34baa18ce6711bea54 (diff)
downloadscummvm-rg350-c396694f3b4378c26b1157fa069a60c21080cb08.tar.gz
scummvm-rg350-c396694f3b4378c26b1157fa069a60c21080cb08.tar.bz2
scummvm-rg350-c396694f3b4378c26b1157fa069a60c21080cb08.zip
Added a temporary hack to get the engine plugins working under MSVC
svn-id: r31904
Diffstat (limited to 'base')
-rw-r--r--base/plugins.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/plugins.h b/base/plugins.h
index ca08a0c628..ec947ee6ad 100644
--- a/base/plugins.h
+++ b/base/plugins.h
@@ -106,6 +106,12 @@ public:
#define PLUGIN_ENABLED_STATIC(ID) \
(defined(ENABLE_##ID) && !PLUGIN_ENABLED_DYNAMIC(ID))
+// HACK for MSVC
+#if defined(_MSC_VER)
+ #undef PLUGIN_ENABLED_STATIC
+ #define PLUGIN_ENABLED_STATIC(ID) 1
+#endif
+
#define PLUGIN_ENABLED_DYNAMIC(ID) \
(defined(ENABLE_##ID) && (ENABLE_##ID == DYNAMIC_PLUGIN) && defined(DYNAMIC_MODULES))