mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
rbcodec: libgme: fix byte-order detection for mips with clang
clang defines both of __LITTLE_ENDIAN__ and __mips__, causing confusion in the byte order detection. Change-Id: If95255974e9e3e5d0554410bbab65bc2af1bb1c7
This commit is contained in:
parent
239ba599fd
commit
a019f19b1c
1 changed files with 2 additions and 4 deletions
|
|
@ -33,10 +33,8 @@
|
|||
#if defined (LSB_FIRST) || defined (__LITTLE_ENDIAN__) || defined (BLARGG_CPU_X86) || \
|
||||
(defined (LITTLE_ENDIAN) && LITTLE_ENDIAN+0 != 1234)
|
||||
#define BLARGG_LITTLE_ENDIAN 1
|
||||
#endif
|
||||
|
||||
#if defined (MSB_FIRST) || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \
|
||||
defined (__mips__) || defined (__sparc__) || defined (BLARGG_CPU_POWERPC) || \
|
||||
#elif defined (MSB_FIRST) || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \
|
||||
defined (__mips__) || defined (__sparc__) || defined (BLARGG_CPU_POWERPC) || \
|
||||
(defined (BIG_ENDIAN) && BIG_ENDIAN+0 != 4321)
|
||||
#define BLARGG_BIG_ENDIAN 1
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue