aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-19 16:38:58 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-19 17:32:35 -0300
commit6c411b3fb53984ec35b04cad98f30d6b28361216 (patch)
tree4a52c4bb06b1136fa53ddfaa8c159eabecc60d4f
parent5f465d1eedff7727d005e2724dbc56960b0f313b (diff)
Cleanup generatorrunner export/import macros.
Reviewer: Luciano Wold <luciano.wolf@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
-rw-r--r--generatorrunnermacros.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/generatorrunnermacros.h b/generatorrunnermacros.h
index f76f24e3..abce21de 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 <contact@pyside.org>
*
@@ -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