summaryrefslogtreecommitdiff
path: root/src/StormPort.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/StormPort.h')
-rw-r--r--src/StormPort.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/StormPort.h b/src/StormPort.h
index 218d5cf..902b785 100644
--- a/src/StormPort.h
+++ b/src/StormPort.h
@@ -270,7 +270,11 @@
#define STORMLIB_DEPRECATED(_Text) __declspec(deprecated)
#endif
#else
- #define STORMLIB_DEPRECATED(_Text) __attribute__((deprecated(_Text)))
+ #ifdef __GNUC__
+ #define STORMLIB_DEPRECATED(_Text) __attribute__((deprecated))
+ #else
+ #define STORMLIB_DEPRECATED(_Text) __attribute__((deprecated(_Text)))
+ #endif
#endif
// When a flag is deprecated, use this macro