summaryrefslogtreecommitdiff
path: root/src/resources/screenshothelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-28 19:32:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-28 20:26:00 +0300
commitdda65b8fb01ac399af8fa44085db3cd9ab6cef2b (patch)
treeb1ce9789df7284f3701c191f36ae50d1b60ea262 /src/resources/screenshothelper.h
parentbab032c4999ab5a1c4da48c14c9a959c686f5da8 (diff)
downloadmanaverse-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.tar.gz
manaverse-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.tar.bz2
manaverse-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.tar.xz
manaverse-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.zip
Add workaround for fix compilation warnings in SDL2.
Diffstat (limited to 'src/resources/screenshothelper.h')
-rw-r--r--src/resources/screenshothelper.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/screenshothelper.h b/src/resources/screenshothelper.h
index d74abfd73..6982c681a 100644
--- a/src/resources/screenshothelper.h
+++ b/src/resources/screenshothelper.h
@@ -23,6 +23,14 @@
#ifndef RESOURCES_SCREENSHOTHELPER_H
#define RESOURCES_SCREENSHOTHELPER_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_video.h>
#include "localconsts.h"