diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-11-04 23:51:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-11-04 23:51:03 +0300 |
commit | a634b3c1ca521c79f5f1d5412e68c73e18a39526 (patch) | |
tree | 2ce2d61c028b1d230780505fe1a05ad2d430efd8 /src/resources/dye | |
parent | 165eef78d8860585fcde8f1e7b128723c240777d (diff) | |
download | plus-a634b3c1ca521c79f5f1d5412e68c73e18a39526.tar.gz plus-a634b3c1ca521c79f5f1d5412e68c73e18a39526.tar.bz2 plus-a634b3c1ca521c79f5f1d5412e68c73e18a39526.tar.xz plus-a634b3c1ca521c79f5f1d5412e68c73e18a39526.zip |
Fix some defines/includes, because in some systems it may works wrong.
Diffstat (limited to 'src/resources/dye')
-rw-r--r-- | src/resources/dye/dye.cpp | 6 | ||||
-rw-r--r-- | src/resources/dye/dyepalette.cpp | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/resources/dye/dye.cpp b/src/resources/dye/dye.cpp index e37b2e943..eac52f638 100644 --- a/src/resources/dye/dye.cpp +++ b/src/resources/dye/dye.cpp @@ -30,14 +30,12 @@ #include <sstream> +#ifndef SDL_BIG_ENDIAN #include <SDL_endian.h> +#endif // SDL_BYTEORDER #include "debug.h" -#ifndef SDL_BYTEORDER -#error missing SDL_endian.h -#endif // SDL_BYTEORDER - Dye::Dye(const std::string &restrict description) { for (int i = 0; i < dyePalateSize; ++i) diff --git a/src/resources/dye/dyepalette.cpp b/src/resources/dye/dyepalette.cpp index 9ea08331d..b2b2d9832 100644 --- a/src/resources/dye/dyepalette.cpp +++ b/src/resources/dye/dyepalette.cpp @@ -34,14 +34,12 @@ #include <cmath> #endif // USE_SDL2 +#ifndef SDL_BIG_ENDIAN #include <SDL_endian.h> +#endif // SDL_BYTEORDER #include "debug.h" -#ifndef SDL_BYTEORDER -#error missing SDL_endian.h -#endif // SDL_BYTEORDER - DyePalette::DyePalette(const std::string &restrict description, const uint8_t blockSize) : mColors() |