diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-08-11 16:54:44 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:18 -0300 |
commit | fbabe7a32b49d214ee5653cf6f0ced2f936c81ab (patch) | |
tree | 24698ed8817b08442ab0462eb8fd114f31c90271 /apiextractormacros.h | |
parent | 7c2acc64fb7d345c184c91336ed20913a6d6d791 (diff) |
Fix bug 731 - "Can't specify more than a single 'since' argument"
Diffstat (limited to 'apiextractormacros.h')
-rw-r--r-- | apiextractormacros.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/apiextractormacros.h b/apiextractormacros.h index 27a8778e2..1c493c23f 100644 --- a/apiextractormacros.h +++ b/apiextractormacros.h @@ -9,12 +9,15 @@ #else #define APIEXTRACTOR_API #endif -#else - #if __GNUC__ >= 4 - #define APIEXTRACTOR_API __attribute__ ((visibility("default"))) - #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_API(func) func #endif #endif |