remove dependency on SDL_byteorder.h when we are using config.h

svn-id: r13206
This commit is contained in:
Max Horn 2004-03-07 03:28:01 +00:00
parent 452a3e2a10
commit a672590259

View File

@ -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