diff --git a/include/raymath.hpp b/include/raymath.hpp index dc3b50c..d712745 100644 --- a/include/raymath.hpp +++ b/include/raymath.hpp @@ -11,11 +11,15 @@ extern "C" { #ifndef RAYMATH_STATIC_INLINE #define RAYMATH_STATIC_INLINE #endif -#pragma GCC diagnostic push +#ifdef __GNUC__ +#pragma GCC diagnostic push // these throw a warning on visual studio, need to check if __GNUC__ is defined to use it. #pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif #include "raymath.h" // NOLINT +#ifdef __GNUC__ #pragma GCC diagnostic pop #endif +#endif #ifdef __cplusplus } #endif