summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils/buildhex.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/buildhex.h b/src/utils/buildhex.h
index f33295d30..e4ef5b6bd 100644
--- a/src/utils/buildhex.h
+++ b/src/utils/buildhex.h
@@ -21,6 +21,16 @@
#ifndef UTILS_BUILDHEX_H
#define UTILS_BUILDHEX_H
+#ifdef USE_SDL2
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wswitch-default"
+#endif // USE_SDL2
+#include <SDL_stdinc.h>
+_SDL_stdinc_h
+#ifdef USE_SDL2
+#pragma GCC diagnostic pop
+#endif // USE_SDL2
+
#ifndef SDL_BIG_ENDIAN
#include <SDL_endian.h>
#endif // SDL_BYTEORDER