rbcodec: libgme: fix byte-order detection for mips with clang
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Tue, 26 May 2026 06:55:31 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit a019f19b1cdc995d1227c7b4501e0adc325a2001 Author: mojyack <[email protected]> Date: Thu Apr 23 17:27:50 2026 +0900 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 diff --git a/lib/rbcodec/codecs/libgme/blargg_endian.h b/lib/rbcodec/codecs/libgme/blargg_endian.h index dce5cb2048..b703da9e1a 100644 --- a/lib/rbcodec/codecs/libgme/blargg_endian.h +++ b/lib/rbcodec/codecs/libgme/blargg_endian.h @@ -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 -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs