Skip to content

Commit

Permalink
Maybe it's easier to collect the big-endian architectures. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 6, 2006
1 parent ea41a3d commit e8064cd
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions include/SDL_endian.h
Expand Up @@ -32,17 +32,14 @@
#define SDL_BIG_ENDIAN 4321

#ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */
#if (defined(__i386__) || defined(__i386)) || \
defined(_M_IX86) || \
defined(__ia64__) || defined(__x86_64__) || \
(defined(__alpha__) || defined(__alpha)) || \
(defined(__arm__) || defined(__thumb__) || defined(_ARM_)) || \
(defined(__sh__) || defined(__sh64__) || defined(_SH4_)) || \
(defined(__mips__) && defined(__MIPSEL__)) || \
defined(__SYMBIAN32__) || defined(__OS2__)
#define SDL_BYTEORDER SDL_LIL_ENDIAN
#else
#if defined(__hppa__) || \
defined(__m68k__) || defined(mc68000) || \
(defined(__MIPS__) && defined(__MISPEB__)) || \
defined(__ppc__) || defined(__POWERPC__) || \
defined(__sparc__)
#define SDL_BYTEORDER SDL_BIG_ENDIAN
#else
#define SDL_BYTEORDER SDL_LIL_ENDIAN
#endif
#endif /* !SDL_BYTEORDER */

Expand Down

0 comments on commit e8064cd

Please sign in to comment.