From 2cf3acb8fad9276e9fda412fd011d6c41d6195e6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 2 Nov 2015 09:04:09 +0100 Subject: shm: guard pragma against non-GNUC --- opentrack-compat/shm.h | 10 +++++++--- 1 file 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 #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 -- cgit v1.2.3