summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-22 21:53:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-22 21:53:24 +0300
commit8c7e633af83448d9d7f8791e25acf7c4356c2d85 (patch)
treef704f7b38f48f330306bfc1cd9098d48a943cda5 /src
parent12af9a1e38337bfdd30e5da318cd7fde2bf7fd3a (diff)
downloadmanaplus-8c7e633af83448d9d7f8791e25acf7c4356c2d85.tar.gz
manaplus-8c7e633af83448d9d7f8791e25acf7c4356c2d85.tar.bz2
manaplus-8c7e633af83448d9d7f8791e25acf7c4356c2d85.tar.xz
manaplus-8c7e633af83448d9d7f8791e25acf7c4356c2d85.zip
Fix compilation warning with SDL 2.
Diffstat (limited to 'src')
-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