aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-23 16:49:33 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-23 16:49:33 -0200
commit04b6a05df40f88e1a62e522fb65264b932a904d5 (patch)
tree72b3cc25d78182e139e377575deac22f803ae46d
parent01c26669868b61f641b2bbf4d36779a354ab651d (diff)
Disable GENRUNNER_DEPRECATED macro when using msvc.
-rw-r--r--generatorrunnermacros.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/generatorrunnermacros.h b/generatorrunnermacros.h
index 65b3d4953..4c1c9df90 100644
--- a/generatorrunnermacros.h
+++ b/generatorrunnermacros.h
@@ -31,13 +31,15 @@
#else
#define GENRUNNER_API __declspec(dllimport)
#endif
+ // dont worry about deprecated functions under windows
+ #define GENRUNNER_DEPRECATED
#else
#if __GNUC__ >= 4
#define GENRUNNER_API __attribute__ ((visibility("default")))
#else
#define GENRUNNER_API
#endif
+ #define GENRUNNER_DEPRECATED __attribute__ ((deprecated))
#endif
-#define GENRUNNER_DEPRECATED __attribute__ ((deprecated))
#endif