summaryrefslogtreecommitdiffhomepage
path: root/contrib/Opcode/Opcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/Opcode/Opcode.h')
-rw-r--r--contrib/Opcode/Opcode.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/Opcode/Opcode.h b/contrib/Opcode/Opcode.h
index 5dc8c91..a6f4adc 100644
--- a/contrib/Opcode/Opcode.h
+++ b/contrib/Opcode/Opcode.h
@@ -22,10 +22,14 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Preprocessor
-#ifdef OPCODE_EXPORTS
- #define OPCODE_API __declspec(dllexport)
+#ifdef WIN32
+ #ifdef OPCODE_EXPORTS
+ #define OPCODE_API __declspec(dllexport)
+ #else
+ #define OPCODE_API __declspec(dllimport)
+ #endif
#else
- #define OPCODE_API __declspec(dllimport)
+ #define OPCODE_API
#endif
#include "OPC_IceHook.h"