diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-22 21:53:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-22 21:53:24 +0300 |
commit | 8c7e633af83448d9d7f8791e25acf7c4356c2d85 (patch) | |
tree | f704f7b38f48f330306bfc1cd9098d48a943cda5 | |
parent | 12af9a1e38337bfdd30e5da318cd7fde2bf7fd3a (diff) | |
download | manaplus-8c7e633af83448d9d7f8791e25acf7c4356c2d85.tar.gz manaplus-8c7e633af83448d9d7f8791e25acf7c4356c2d85.tar.bz2 manaplus-8c7e633af83448d9d7f8791e25acf7c4356c2d85.tar.xz manaplus-8c7e633af83448d9d7f8791e25acf7c4356c2d85.zip |
Fix compilation warning with SDL 2.
-rw-r--r-- | src/utils/buildhex.h | 10 |
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 |