From 302029e093c88fb46cea8d6131726b82731110f9 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Mon, 23 Nov 2009 16:51:01 -0200 Subject: Change the getGenerators signature, because on some platforms a function exported as a C function can't return a C++ type by value. All generators plugins *MUST* be recompiled. Reviewed by Luciano Wolf --- generatorrunnermacros.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'generatorrunnermacros.h') diff --git a/generatorrunnermacros.h b/generatorrunnermacros.h index 4c1c9df..c68f328 100644 --- a/generatorrunnermacros.h +++ b/generatorrunnermacros.h @@ -26,16 +26,18 @@ // GENRUNNER_API is used for the public API symbols. #if defined _WIN32 || defined __CYGWIN__ + #define GENRUNNER_EXPORT __declspec(dllexport) #if GENRUNNER_BUILD - #define GENRUNNER_API __declspec(dllexport) + #define GENRUNNER_API GENRUNNER_EXPORT #else #define GENRUNNER_API __declspec(dllimport) #endif // dont worry about deprecated functions under windows #define GENRUNNER_DEPRECATED #else + #define GENRUNNER_EXPORT __attribute__ ((visibility("default"))) #if __GNUC__ >= 4 - #define GENRUNNER_API __attribute__ ((visibility("default"))) + #define GENRUNNER_API GENRUNNER_EXPORT #else #define GENRUNNER_API #endif -- cgit v1.2.3