summaryrefslogtreecommitdiff
path: root/src/input/keyboardconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/keyboardconfig.h')
-rw-r--r--src/input/keyboardconfig.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input/keyboardconfig.h b/src/input/keyboardconfig.h
index a67101514..21b7ac608 100644
--- a/src/input/keyboardconfig.h
+++ b/src/input/keyboardconfig.h
@@ -23,6 +23,14 @@
#ifndef INPUT_KEYBOARDCONFIG_H
#define INPUT_KEYBOARDCONFIG_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_keyboard.h>
#include "sdlshared.h"