diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/integrity_unittest.cc | 4 | ||||
-rw-r--r-- | src/resources/dye/dyepalette_unittest.cc | 4 | ||||
-rw-r--r-- | src/resources/sprite/animatedsprite_unittest.cc | 4 | ||||
-rw-r--r-- | src/utils/chatutils_unittest.cc | 4 | ||||
-rw-r--r-- | src/utils/files_unittest.cc | 4 |
5 files changed, 20 insertions, 0 deletions
diff --git a/src/integrity_unittest.cc b/src/integrity_unittest.cc index bf2203847..0c61a15a4 100644 --- a/src/integrity_unittest.cc +++ b/src/integrity_unittest.cc @@ -34,6 +34,10 @@ #include "utils/env.h" #include "utils/physfstools.h" +#ifndef USE_SDL2 +#include <SDL.h> +#endif // USE_SDL2 + #include "debug.h" namespace diff --git a/src/resources/dye/dyepalette_unittest.cc b/src/resources/dye/dyepalette_unittest.cc index 3de2b1c3b..8689cdf6f 100644 --- a/src/resources/dye/dyepalette_unittest.cc +++ b/src/resources/dye/dyepalette_unittest.cc @@ -36,6 +36,10 @@ #include "utils/env.h" #include "utils/physfstools.h" +#ifndef USE_SDL2 +#include <SDL.h> +#endif // USE_SDL2 + #include "debug.h" TEST_CASE("DyePalette tests") diff --git a/src/resources/sprite/animatedsprite_unittest.cc b/src/resources/sprite/animatedsprite_unittest.cc index 1a77ea38f..8601bed17 100644 --- a/src/resources/sprite/animatedsprite_unittest.cc +++ b/src/resources/sprite/animatedsprite_unittest.cc @@ -40,6 +40,10 @@ #include "utils/mrand.h" #include "utils/physfstools.h" +#ifndef USE_SDL2 +#include <SDL.h> +#endif // USE_SDL2 + #include "debug.h" TEST_CASE("AnimatedSprite tests", "animatedsprite") diff --git a/src/utils/chatutils_unittest.cc b/src/utils/chatutils_unittest.cc index af4cb388a..d4da5e453 100644 --- a/src/utils/chatutils_unittest.cc +++ b/src/utils/chatutils_unittest.cc @@ -37,6 +37,10 @@ #include "resources/resourcemanager/resourcemanager.h" +#ifndef USE_SDL2 +#include <SDL.h> +#endif // USE_SDL2 + #include "debug.h" TEST_CASE("chatutils replaceVars") diff --git a/src/utils/files_unittest.cc b/src/utils/files_unittest.cc index 5ccfe0e04..db56e03e9 100644 --- a/src/utils/files_unittest.cc +++ b/src/utils/files_unittest.cc @@ -27,6 +27,10 @@ #include "resources/resourcemanager/resourcemanager.h" +#ifndef USE_SDL2 +#include <SDL.h> +#endif // USE_SDL2 + #include "debug.h" TEST_CASE("Files renameFile") |