Maybe it's easier to collect the big-endian architectures. :)
authorSam Lantinga <slouken@libsdl.org>
Mon, 06 Mar 2006 16:33:23 +0000
changeset 1474351d757c7edd
parent 1473 73777b138913
child 1475 d45aefcac017
Maybe it's easier to collect the big-endian architectures. :)
include/SDL_endian.h
     1.1 --- a/include/SDL_endian.h	Mon Mar 06 15:29:41 2006 +0000
     1.2 +++ b/include/SDL_endian.h	Mon Mar 06 16:33:23 2006 +0000
     1.3 @@ -32,17 +32,14 @@
     1.4  #define SDL_BIG_ENDIAN	4321
     1.5  
     1.6  #ifndef SDL_BYTEORDER	/* Not defined in SDL_config.h? */
     1.7 -#if (defined(__i386__) || defined(__i386)) || \
     1.8 -     defined(_M_IX86) || \
     1.9 -     defined(__ia64__) || defined(__x86_64__) || \
    1.10 -    (defined(__alpha__) || defined(__alpha)) || \
    1.11 -    (defined(__arm__) || defined(__thumb__) || defined(_ARM_)) || \
    1.12 -    (defined(__sh__) || defined(__sh64__) || defined(_SH4_)) || \
    1.13 -    (defined(__mips__) && defined(__MIPSEL__)) || \
    1.14 -     defined(__SYMBIAN32__) || defined(__OS2__)
    1.15 +#if defined(__hppa__) || \
    1.16 +    defined(__m68k__) || defined(mc68000) || \
    1.17 +    (defined(__MIPS__) && defined(__MISPEB__)) || \
    1.18 +    defined(__ppc__) || defined(__POWERPC__) || \
    1.19 +    defined(__sparc__)
    1.20 +#define SDL_BYTEORDER	SDL_BIG_ENDIAN
    1.21 +#else
    1.22  #define SDL_BYTEORDER	SDL_LIL_ENDIAN
    1.23 -#else
    1.24 -#define SDL_BYTEORDER	SDL_BIG_ENDIAN
    1.25  #endif
    1.26  #endif /* !SDL_BYTEORDER */
    1.27