summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h
index cdac1ffc5..abf2a72c1 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -25,6 +25,14 @@
#include "main.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_mutex.h>
#include <fstream>