SDL: Fix MSVC warnings

Fixes warning C4121: alignment of a member was sensitive to packing
by hiding warnings from system headers
This commit is contained in:
SupSuper 2019-05-09 03:07:07 +01:00 committed by Paul Gilbert
parent 8d17b6c48a
commit 276f6e0bfd

View File

@ -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)