From 6c411b3fb53984ec35b04cad98f30d6b28361216 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 19 Aug 2010 16:38:58 -0300 Subject: Cleanup generatorrunner export/import macros. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Luciano Wold Renato Araújo --- generatorrunnermacros.h | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'generatorrunnermacros.h') diff --git a/generatorrunnermacros.h b/generatorrunnermacros.h index f76f24e38..abce21de6 100644 --- a/generatorrunnermacros.h +++ b/generatorrunnermacros.h @@ -1,7 +1,7 @@ /* * This file is part of the API Extractor project. * -* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). * * Contact: PySide team * @@ -26,22 +26,16 @@ // GENRUNNER_API is used for the public API symbols. #if defined _WIN32 || defined __CYGWIN__ - #define GENRUNNER_EXPORT __declspec(dllexport) + #define GENRUNNER_EXPORT __declspec(dllexport) #if GENRUNNER_EXPORTS #define GENRUNNER_API GENRUNNER_EXPORT - #else - #define GENRUNNER_API #endif - // dont worry about deprecated functions under windows - #define GENRUNNER_DEPRECATED -#else - #define GENRUNNER_EXPORT __attribute__ ((visibility("default"))) - #if __GNUC__ >= 4 - #define GENRUNNER_API GENRUNNER_EXPORT - #else - #define GENRUNNER_API - #endif - #define GENRUNNER_DEPRECATED __attribute__ ((deprecated)) +#elif __GNUC__ >= 4 + #define GENRUNNER_EXPORT __attribute__ ((visibility("default"))) + #define GENRUNNER_API GENRUNNER_EXPORT #endif +#ifndef GENRUNNER_API + #define GENRUNNER_API +#endif #endif -- cgit v1.2.3