mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
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:
parent
8d17b6c48a
commit
276f6e0bfd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user