From 5273b0bc8dcc2adbf8557a4008c63e50955884fe Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 Jun 2016 02:17:22 +0300 Subject: Fix tests compilation without SDL2. --- src/resources/dye/dyepalette_unittest.cc | 4 ++++ src/resources/sprite/animatedsprite_unittest.cc | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'src/resources') 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 +#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 +#endif // USE_SDL2 + #include "debug.h" TEST_CASE("AnimatedSprite tests", "animatedsprite") -- cgit v1.2.3-70-g09d2