From 39e19833f3cdb67b53544f3a8787628e484a50ef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 Jun 2016 19:00:59 +0300 Subject: Fix other include issues. --- src/utils/files_unittest.cc | 4 ---- src/utils/mathutils.h | 3 +++ src/utils/sdl2helper.h | 1 + src/utils/sdlhelper.h | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/utils') diff --git a/src/utils/files_unittest.cc b/src/utils/files_unittest.cc index db56e03e9..5ccfe0e04 100644 --- a/src/utils/files_unittest.cc +++ b/src/utils/files_unittest.cc @@ -27,10 +27,6 @@ #include "resources/resourcemanager/resourcemanager.h" -#ifndef USE_SDL2 -#include -#endif // USE_SDL2 - #include "debug.h" TEST_CASE("Files renameFile") diff --git a/src/utils/mathutils.h b/src/utils/mathutils.h index 4bc3cf104..c2578e487 100644 --- a/src/utils/mathutils.h +++ b/src/utils/mathutils.h @@ -24,7 +24,10 @@ #define UTILS_MATHUTILS_H #include + +#ifndef USE_SDL2 #include +#endif #include "localconsts.h" diff --git a/src/utils/sdl2helper.h b/src/utils/sdl2helper.h index 7cf471542..da1faeba0 100644 --- a/src/utils/sdl2helper.h +++ b/src/utils/sdl2helper.h @@ -27,6 +27,7 @@ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wswitch-default" #include +_SDL_stdinc_h #pragma GCC diagnostic pop #include diff --git a/src/utils/sdlhelper.h b/src/utils/sdlhelper.h index 89cd3f789..e75af2be2 100644 --- a/src/utils/sdlhelper.h +++ b/src/utils/sdlhelper.h @@ -23,6 +23,7 @@ #ifdef USE_SDL2 #include "utils/sdl2helper.h" +UTILS_SDL2HELPER_H #else #include "utils/stringvector.h" -- cgit v1.2.3-60-g2f50