summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-02 09:04:09 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-02 09:04:09 +0100
commit2cf3acb8fad9276e9fda412fd011d6c41d6195e6 (patch)
tree626e59cfce73035189593cac0f690e522c7ed768 /opentrack-compat
parente138d155d2f2cfb7e87c353f98ffea0e2592483f (diff)
shm: guard pragma against non-GNUC
Diffstat (limited to 'opentrack-compat')
-rw-r--r--opentrack-compat/shm.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/opentrack-compat/shm.h b/opentrack-compat/shm.h
index c62976bd..3edb0080 100644
--- a/opentrack-compat/shm.h
+++ b/opentrack-compat/shm.h
@@ -19,8 +19,10 @@
#include <sys/types.h>
#endif
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wattributes"
+#ifdef __GNUC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wattributes"
+#endif
#ifdef BUILD_compat
# include "compat-export.hpp"
@@ -45,4 +47,6 @@ private:
#endif
};
-#pragma GCC diagnostic pop
+#ifdef __GNUC__
+# pragma GCC diagnostic pop
+#endif