diff options
Diffstat (limited to 'common/scummsys.h')
-rw-r--r-- | common/scummsys.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index 7eb1fb639b..383dbd9e49 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -106,22 +106,24 @@ #define CHECK_HEAP - #ifdef X11_BACKEND - - // You need to set this manually if necessary -// #define SCUMM_LITTLE_ENDIAN + #ifndef CONFIG_H + #ifdef X11_BACKEND - #else - /* need this for the SDL_BYTEORDER define */ - #include <SDL_byteorder.h> - - #if SDL_BYTEORDER == SDL_LIL_ENDIAN - #define SCUMM_LITTLE_ENDIAN - #elif SDL_BYTEORDER == SDL_BIG_ENDIAN - #define SCUMM_BIG_ENDIAN - #else - #error Neither SDL_BIG_ENDIAN nor SDL_LITTLE_ENDIAN is set. - #endif + // You need to set this manually if necessary + // #define SCUMM_LITTLE_ENDIAN + + #else + /* need this for the SDL_BYTEORDER define */ + #include <SDL_byteorder.h> + + #if SDL_BYTEORDER == SDL_LIL_ENDIAN + #define SCUMM_LITTLE_ENDIAN + #elif SDL_BYTEORDER == SDL_BIG_ENDIAN + #define SCUMM_BIG_ENDIAN + #else + #error Neither SDL_BIG_ENDIAN nor SDL_LITTLE_ENDIAN is set. + #endif + #endif #endif // You need to set this manually if necessary |