include/SDL_endian.h
changeset 1474 351d757c7edd
parent 1469 bf867c1e57e3
child 1475 d45aefcac017
equal deleted inserted replaced
1473:73777b138913 1474:351d757c7edd
    30 /* The two types of endianness */
    30 /* The two types of endianness */
    31 #define SDL_LIL_ENDIAN	1234
    31 #define SDL_LIL_ENDIAN	1234
    32 #define SDL_BIG_ENDIAN	4321
    32 #define SDL_BIG_ENDIAN	4321
    33 
    33 
    34 #ifndef SDL_BYTEORDER	/* Not defined in SDL_config.h? */
    34 #ifndef SDL_BYTEORDER	/* Not defined in SDL_config.h? */
    35 #if (defined(__i386__) || defined(__i386)) || \
    35 #if defined(__hppa__) || \
    36      defined(_M_IX86) || \
    36     defined(__m68k__) || defined(mc68000) || \
    37      defined(__ia64__) || defined(__x86_64__) || \
    37     (defined(__MIPS__) && defined(__MISPEB__)) || \
    38     (defined(__alpha__) || defined(__alpha)) || \
    38     defined(__ppc__) || defined(__POWERPC__) || \
    39     (defined(__arm__) || defined(__thumb__) || defined(_ARM_)) || \
    39     defined(__sparc__)
    40     (defined(__sh__) || defined(__sh64__) || defined(_SH4_)) || \
    40 #define SDL_BYTEORDER	SDL_BIG_ENDIAN
    41     (defined(__mips__) && defined(__MIPSEL__)) || \
    41 #else
    42      defined(__SYMBIAN32__) || defined(__OS2__)
       
    43 #define SDL_BYTEORDER	SDL_LIL_ENDIAN
    42 #define SDL_BYTEORDER	SDL_LIL_ENDIAN
    44 #else
       
    45 #define SDL_BYTEORDER	SDL_BIG_ENDIAN
       
    46 #endif
    43 #endif
    47 #endif /* !SDL_BYTEORDER */
    44 #endif /* !SDL_BYTEORDER */
    48 
    45 
    49 
    46 
    50 #include "begin_code.h"
    47 #include "begin_code.h"