diff options
| -rw-r--r-- | opentrack-compat/shm.h | 10 | 
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  | 
