aboutsummaryrefslogtreecommitdiffstats
path: root/generatorrunnermacros.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-18 17:09:07 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-19 11:30:43 -0300
commit5f465d1eedff7727d005e2724dbc56960b0f313b (patch)
tree83f7fdf104af74c04626105c61560dab1782e3d7 /generatorrunnermacros.h
parent1b89ed5df330e4588838de36a7bbf11e595158e2 (diff)
Use DEFINE_SYMBOL in cmake to create the define to exports symbols.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'generatorrunnermacros.h')
-rw-r--r--generatorrunnermacros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/generatorrunnermacros.h b/generatorrunnermacros.h
index c68f328d3..f76f24e38 100644
--- a/generatorrunnermacros.h
+++ b/generatorrunnermacros.h
@@ -27,10 +27,10 @@
// GENRUNNER_API is used for the public API symbols.
#if defined _WIN32 || defined __CYGWIN__
#define GENRUNNER_EXPORT __declspec(dllexport)
- #if GENRUNNER_BUILD
+ #if GENRUNNER_EXPORTS
#define GENRUNNER_API GENRUNNER_EXPORT
#else
- #define GENRUNNER_API __declspec(dllimport)
+ #define GENRUNNER_API
#endif
// dont worry about deprecated functions under windows
#define GENRUNNER_DEPRECATED