From: Daniel Golle Date: Fri, 6 Dec 2024 17:57:14 +0000 (+0000) Subject: zmusic: fix target endian detection X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=75c1338131ca67b10fceab4f93b9108a4c402b8a;p=feed%2Fvideo.git zmusic: fix target endian detection Use __BYTE_ORDER macro when ever it is defined and not just when using glibc. Signed-off-by: Daniel Golle --- diff --git a/games/zmusic/patches/100-fix-endian-detect-with-musl.patch b/games/zmusic/patches/100-fix-endian-detect-with-musl.patch new file mode 100644 index 0000000..bc9f297 --- /dev/null +++ b/games/zmusic/patches/100-fix-endian-detect-with-musl.patch @@ -0,0 +1,11 @@ +--- 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 + #if __BYTE_ORDER == __LITTLE_ENDIAN