diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/sdlimagehelper_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/sdlimagehelper_unittest.cc b/src/resources/sdlimagehelper_unittest.cc index 46338e406..e620a466d 100644 --- a/src/resources/sdlimagehelper_unittest.cc +++ b/src/resources/sdlimagehelper_unittest.cc @@ -19,6 +19,8 @@ */ #ifndef USE_SDL2 +#include <SDL_endian.h> +#if SDL_BYTEORDER == SDL_LIL_ENDIAN #include "test/unittests.h" @@ -36,7 +38,6 @@ #include "resources/sdlimagehelper.h" -#include <SDL_endian.h> #include "debug.h" @@ -455,4 +456,5 @@ TEST_CASE("sdlimagehelper combineSurface", "") delete2(logger); } +#endif // SDL_BYTEORDER == SDL_LIL_ENDIAN #endif // USE_SDL2 |