aboutsummaryrefslogtreecommitdiffstats
path: root/apiextractormacros.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-18 16:50:03 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:08 -0300
commit6e5ab7a42253697511a5153a80b66760a04e5f45 (patch)
tree3414cb7d71b7bb357b7143bb7857b8cfb299e166 /apiextractormacros.h
parent199eb768315920a3479251e2e247a5257a6a6dfd (diff)
Use CMake DEFINES to export symbols.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'apiextractormacros.h')
-rw-r--r--apiextractormacros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apiextractormacros.h b/apiextractormacros.h
index d56741dba..27a8778e2 100644
--- a/apiextractormacros.h
+++ b/apiextractormacros.h
@@ -4,10 +4,10 @@
// APIEXTRACTOR_API is used for the public API symbols.
#if defined _WIN32 || defined __CYGWIN__
- #if APIEXTRACTOR_BUILD
+ #if APIEXTRACTOR_EXPORTS
#define APIEXTRACTOR_API __declspec(dllexport)
#else
- #define APIEXTRACTOR_API __declspec(dllimport)
+ #define APIEXTRACTOR_API
#endif
#else
#if __GNUC__ >= 4