diff options
Diffstat (limited to 'apiextractormacros.h')
-rw-r--r-- | apiextractormacros.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apiextractormacros.h b/apiextractormacros.h new file mode 100644 index 000000000..b2cb4b0a6 --- /dev/null +++ b/apiextractormacros.h @@ -0,0 +1,20 @@ +#ifndef APIEXTRACTORMACROS_H +#define APIEXTRACTORMACROS_H + + +// APIEXTRACTOR_API is used for the public API symbols. +#if defined _WIN32 || defined __CYGWIN__ + #if APIEXTRACTOR_BUILD + #define APIEXTRACTOR_API __declspec(dllimport) + #else + #define APIEXTRACTOR_API __declspec(dllexport) + #endif +#else + #if __GNUC__ >= 4 + #define APIEXTRACTOR_API __attribute__ ((visibility("default"))) + #else + #define APIEXTRACTOR_API + #endif +#endif + +#endif |