Skip to content

Commit

Permalink
SDL: Fix MSVC warnings
Browse files Browse the repository at this point in the history
Fixes warning C4121: alignment of a member was sensitive to packing
by hiding warnings from system headers
  • Loading branch information
SupSuper authored and dreammaster committed May 9, 2019
1 parent 8d17b6c commit 276f6e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backends/platform/sdl/sdl-sys.h
Expand Up @@ -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)
Expand Down

0 comments on commit 276f6e0

Please sign in to comment.