mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 10:59:00 +00:00
Fixed warning for GCC on visual studio
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user