summaryrefslogtreecommitdiff
path: root/zen/warn_static.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/warn_static.h')
-rwxr-xr-xzen/warn_static.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zen/warn_static.h b/zen/warn_static.h
index 5b9a4fee..e4931c08 100755
--- a/zen/warn_static.h
+++ b/zen/warn_static.h
@@ -14,11 +14,13 @@ Usage:
warn_static("my message")
*/
+#if defined __GNUC__
#define STATIC_WARNING_CONCAT_SUB(X, Y) X ## Y
#define STATIC_WARNING_CONCAT(X, Y) STATIC_WARNING_CONCAT_SUB(X, Y)
#define warn_static(TXT) \
typedef int STATIC_WARNING_87903124 __attribute__ ((deprecated)); \
enum { STATIC_WARNING_CONCAT(warn_static_dummy_value, __LINE__) = sizeof(STATIC_WARNING_87903124) };
+#endif
#endif //WARN_STATIC_H_08724567834560832745
bgstack15