aports/community/deadbeef/use-endian-h.patch
alpine-mips-patches 4012551bbe community/deadbeef: fix byte order detection
Unlock the generic <endian.h> fallback to detect CPU byte order and
delete ppc64le.patch since little-endian POWER is now covered too.
2018-12-17 08:17:58 +00:00

12 lines
505 B
Diff

--- a/plugins/gme/game-music-emu-0.6pre/gme/blargg_endian.h
+++ b/plugins/gme/game-music-emu-0.6pre/gme/blargg_endian.h
@@ -21,7 +21,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 __linux__
// GCC handles this for us
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN