summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-02 19:42:38 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-02 19:42:38 +0300
commit4b41e05deeef6927863601205dd7a0b5563e803a (patch)
treebbeb97bd922d14593ad52554fdcb0676ee286eaf
parentd977bec3cb85878d746335e7a4fed8b91d841067 (diff)
downloadmv-4b41e05deeef6927863601205dd7a0b5563e803a.tar.gz
mv-4b41e05deeef6927863601205dd7a0b5563e803a.tar.bz2
mv-4b41e05deeef6927863601205dd7a0b5563e803a.tar.xz
mv-4b41e05deeef6927863601205dd7a0b5563e803a.zip
Enable combineSurface test only in little endian systems.
-rw-r--r--src/resources/sdlimagehelper_unittest.cc4
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