diff options
-rw-r--r-- | backends/platform/sdl/sdl-sys.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl-sys.h b/backends/platform/sdl/sdl-sys.h index 9b87f5eabd..edb57c30f9 100644 --- a/backends/platform/sdl/sdl-sys.h +++ b/backends/platform/sdl/sdl-sys.h @@ -144,7 +144,11 @@ #include <SDL.h> #endif +// Ignore warnings from system headers pulled by SDL +#pragma warning(push) +#pragma warning(disable:4121) // alignment of a member was sensitive to packing #include <SDL_syswm.h> +#pragma warning(pop) // Restore the forbidden exceptions from the hack above #if !defined(FORBIDDEN_SYMBOL_ALLOW_ALL) && defined(_MSC_VER) |