From fbabe7a32b49d214ee5653cf6f0ced2f936c81ab Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 11 Aug 2011 16:54:44 -0300 Subject: Fix bug 731 - "Can't specify more than a single 'since' argument" --- apiextractormacros.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'apiextractormacros.h') 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 -- cgit v1.2.3