From 201dc96af656196a24e6ce4bbcc3e22fc960a972 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Jun 2017 22:10:01 +0300 Subject: Fix compilation with old compilers and not for linux. --- src/utils/copynpaste.cpp | 1 + src/utils/cpu.cpp | 1 + src/utils/sdl2helper.cpp | 1 + 3 files changed, 3 insertions(+) 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 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) -- cgit v1.2.3-60-g2f50