mirror of
https://github.com/openwrt/video.git
synced 2025-12-21 17:04:37 +04:00
Use __BYTE_ORDER macro when ever it is defined and not just when using glibc. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
12 lines
492 B
Diff
12 lines
492 B
Diff
--- a/thirdparty/game-music-emu/gme/blargg_endian.h
|
|
+++ b/thirdparty/game-music-emu/gme/blargg_endian.h
|
|
@@ -20,7 +20,7 @@
|
|
// BLARGG_BIG_ENDIAN, BLARGG_LITTLE_ENDIAN: Determined automatically, otherwise only
|
|
// one may be #defined to 1. Only needed if something actually depends on byte order.
|
|
#if !defined (BLARGG_BIG_ENDIAN) && !defined (BLARGG_LITTLE_ENDIAN)
|
|
-#ifdef __GLIBC__
|
|
+#ifdef __BYTE_ORDER
|
|
// GCC handles this for us
|
|
#include <endian.h>
|
|
#if __BYTE_ORDER == __LITTLE_ENDIAN
|