summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-29 22:10:01 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-29 22:20:06 +0300
commit201dc96af656196a24e6ce4bbcc3e22fc960a972 (patch)
treeec36864fbc8630043580c9bf4fe7f8473ccac64f /src/utils
parent337a52a41ea44570da65586403f14248042f0169 (diff)
downloadplus-201dc96af656196a24e6ce4bbcc3e22fc960a972.tar.gz
plus-201dc96af656196a24e6ce4bbcc3e22fc960a972.tar.bz2
plus-201dc96af656196a24e6ce4bbcc3e22fc960a972.tar.xz
plus-201dc96af656196a24e6ce4bbcc3e22fc960a972.zip
Fix compilation with old compilers and not for linux.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/copynpaste.cpp1
-rw-r--r--src/utils/cpu.cpp1
-rw-r--r--src/utils/sdl2helper.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp
index 58c191a3d..3896c2b6b 100644
--- a/src/utils/copynpaste.cpp
+++ b/src/utils/copynpaste.cpp
@@ -63,6 +63,7 @@ PRAGMA48(GCC diagnostic pop)
#elif defined __native_client__
#include "utils/naclmessages.h"
#elif defined WIN32
+#include "utils/cast.h"
PRAGMA48(GCC diagnostic push)
PRAGMA48(GCC diagnostic ignored "-Wshadow")
#include <SDL_syswm.h>
diff --git a/src/utils/cpu.cpp b/src/utils/cpu.cpp
index 0df53f06f..61bb39539 100644
--- a/src/utils/cpu.cpp
+++ b/src/utils/cpu.cpp
@@ -26,6 +26,7 @@
&& (GCC_VERSION >= 40800) && !defined(ANDROID)
// nothing
#elif defined(__linux__) || defined(__linux)
+#include "utils/foreach.h"
#include "utils/stringutils.h"
#endif // (defined(__amd64__) || defined(__i386__)) && defined(__GNUC__)
// && (GCC_VERSION >= 40800) && !defined(ANDROID)
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp
index 239f2636b..5d6fdde2b 100644
--- a/src/utils/sdl2helper.cpp
+++ b/src/utils/sdl2helper.cpp
@@ -24,6 +24,7 @@
#include "logger.h"
+#include "utils/foreach.h"
#include "utils/stringutils.h"
PRAGMA48(GCC diagnostic push)