diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/sdltcpnet.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/sdltcpnet.h b/src/net/sdltcpnet.h index be5879fb3..7d0a491c8 100644 --- a/src/net/sdltcpnet.h +++ b/src/net/sdltcpnet.h @@ -21,6 +21,14 @@ #ifndef NET_SDLTCPNET_H #define NET_SDLTCPNET_H +#ifdef USE_SDL2 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wswitch-default" +#endif +#include <SDL_stdinc.h> +#ifdef USE_SDL2 +#pragma GCC diagnostic pop +#endif #include <SDL_net.h> #include "localconsts.h" |