comparison include/SDL_endian.h @ 1475:d45aefcac017

Get Microsoft's preprocessor symbols in there
author Sam Lantinga <slouken@libsdl.org>
date Mon, 06 Mar 2006 16:37:18 +0000
parents 351d757c7edd
children 782fd950bd46 c121d94672cb 6832b00d3594
comparison
equal deleted inserted replaced
1474:351d757c7edd 1475:d45aefcac017
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(__hppa__) || \ 35 #if defined(__hppa__) || \
36 defined(__m68k__) || defined(mc68000) || \ 36 defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
37 (defined(__MIPS__) && defined(__MISPEB__)) || \ 37 (defined(__MIPS__) && defined(__MISPEB__)) || \
38 defined(__ppc__) || defined(__POWERPC__) || \ 38 defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \
39 defined(__sparc__) 39 defined(__sparc__)
40 #define SDL_BYTEORDER SDL_BIG_ENDIAN 40 #define SDL_BYTEORDER SDL_BIG_ENDIAN
41 #else 41 #else
42 #define SDL_BYTEORDER SDL_LIL_ENDIAN 42 #define SDL_BYTEORDER SDL_LIL_ENDIAN
43 #endif 43 #endif