diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-06-15 08:39:46 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-06-15 08:39:46 -0700 |
commit | 082d27ede81a88586de914bb33c0f9c5e33bab08 (patch) | |
tree | d5966ccc4d11a3ef0a796171de1cf2a51111d5db | |
parent | 98d9d5a61fbcb5f62bfd5b1db4292c1fa3020e7f (diff) | |
download | abc-082d27ede81a88586de914bb33c0f9c5e33bab08.tar.gz abc-082d27ede81a88586de914bb33c0f9c5e33bab08.tar.bz2 abc-082d27ede81a88586de914bb33c0f9c5e33bab08.zip |
Added option to compile on windows without DLL support.
-rw-r--r-- | src/misc/util/abc_global.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/misc/util/abc_global.h b/src/misc/util/abc_global.h index 114a734c..5f0e1232 100644 --- a/src/misc/util/abc_global.h +++ b/src/misc/util/abc_global.h @@ -36,8 +36,13 @@ #endif #ifdef WIN32 -#define ABC_DLLEXPORT __declspec(dllexport) -#define ABC_DLLIMPORT __declspec(dllimport) + #ifdef WIN32_NO_DLL + #define ABC_DLLEXPORT + #define ABC_DLLIMPORT + #else + #define ABC_DLLEXPORT __declspec(dllexport) + #define ABC_DLLIMPORT __declspec(dllimport) + #endif #else /* defined(WIN32) */ #define ABC_DLLIMPORT #endif /* defined(WIN32) */ |