aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))