summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binaryninjacore.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 39b44921..3eaeb628 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -52,12 +52,17 @@
#define BINARYNINJAPLUGIN __attribute__((visibility("default")))
#else
#ifdef _MSC_VER
- #ifdef BINARYNINJACORE_LIBRARY
- #define BINARYNINJACOREAPI __declspec(dllexport)
+ #ifndef DEMO_VERSION
+ #ifdef BINARYNINJACORE_LIBRARY
+ #define BINARYNINJACOREAPI __declspec(dllexport)
+ #else
+ #define BINARYNINJACOREAPI
+ #endif
+ #define BINARYNINJAPLUGIN __declspec(dllexport)
#else
#define BINARYNINJACOREAPI
+ #define BINARYNINJAPLUGIN
#endif
- #define BINARYNINJAPLUGIN __declspec(dllexport)
#else
#define BINARYNINJACOREAPI
#endif