diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-13 10:48:37 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-13 10:48:37 -0300 |
commit | 14e2207a58e79360bd48507b5e386ec944d8dd74 (patch) | |
tree | 2e903282fef303d610ebfb6b7913e9a0b5a84825 /ApiExtractor/apiextractormacros.h | |
parent | 744d018dd857543f93f3961cf9e7f70adcc7ce65 (diff) |
Move ApiExtractor into ApiExtractor directory to ease the merge into Shiboken.
Diffstat (limited to 'ApiExtractor/apiextractormacros.h')
-rw-r--r-- | ApiExtractor/apiextractormacros.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ApiExtractor/apiextractormacros.h b/ApiExtractor/apiextractormacros.h new file mode 100644 index 000000000..3364acf14 --- /dev/null +++ b/ApiExtractor/apiextractormacros.h @@ -0,0 +1,23 @@ +#ifndef APIEXTRACTORMACROS_H +#define APIEXTRACTORMACROS_H + + +// APIEXTRACTOR_API is used for the public API symbols. +#if defined _WIN32 + #if APIEXTRACTOR_EXPORTS + #define APIEXTRACTOR_API __declspec(dllexport) + #else + #define APIEXTRACTOR_API + #endif + #define APIEXTRACTOR_DEPRECATED(func) __declspec(deprecated) func +#elif __GNUC__ >= 4 + #define APIEXTRACTOR_API __attribute__ ((visibility("default"))) + #define APIEXTRACTOR_DEPRECATED(func) func __attribute__ ((deprecated)) +#endif + +#ifndef APIEXTRACTOR_API + #define APIEXTRACTOR_API + #define APIEXTRACTOR_DEPRECATED(func) func +#endif + +#endif |