diff options
Diffstat (limited to 'include/djinterop/config.hpp.in')
-rw-r--r-- | include/djinterop/config.hpp.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/djinterop/config.hpp.in b/include/djinterop/config.hpp.in index b558501..4783904 100644 --- a/include/djinterop/config.hpp.in +++ b/include/djinterop/config.hpp.in @@ -23,10 +23,19 @@ #error This library needs at least a C++17 compliant compiler #endif +// Statement about whether the library was built/installed as static or shared. +#cmakedefine DJINTEROP_STATIC + #if defined _WIN32 || defined __CYGWIN__ +#if defined DJINTEROP_STATIC +#define DJINTEROP_SYMBOL_IMPORT +#define DJINTEROP_SYMBOL_EXPORT +#define DJINTEROP_SYMBOL_LOCAL +#else #define DJINTEROP_SYMBOL_IMPORT __declspec(dllimport) #define DJINTEROP_SYMBOL_EXPORT __declspec(dllexport) #define DJINTEROP_SYMBOL_LOCAL +#endif #else #if __GNUC__ >= 4 #define DJINTEROP_SYMBOL_IMPORT __attribute__((visibility("default"))) |