diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h index 2916039..9b01cad 100644 --- a/src/common.h +++ b/src/common.h @@ -28,7 +28,11 @@ #ifdef LIMD_GLUE_STATIC #define LIMD_GLUE_API #elif defined(_WIN32) - #define LIMD_GLUE_API __declspec( dllexport ) + #ifdef DLL_EXPORT + #define LIMD_GLUE_API __declspec( dllexport ) + #else + #define LIMD_GLUE_API + #endif #else #if __GNUC__ >= 4 #define LIMD_GLUE_API __attribute__((visibility("default"))) |
