aboutsummaryrefslogtreecommitdiffstats
path: root/community/deadbeef/use-endian-h.patch
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-04-29 08:36:45 +0300
committerprspkt <prspkt@protonmail.com>2019-04-29 08:39:44 +0300
commit07419963cfbd90b3b3e11bc2e1438e1708eceffb (patch)
treef7ca7d5bd6a6617b3f5d917aab8d7dd0761b2f54 /community/deadbeef/use-endian-h.patch
parentdc527c3bcd601d07f0134bbc725cec290e40abb4 (diff)
downloadaports-07419963cfbd90b3b3e11bc2e1438e1708eceffb.tar.gz
aports-07419963cfbd90b3b3e11bc2e1438e1708eceffb.tar.bz2
aports-07419963cfbd90b3b3e11bc2e1438e1708eceffb.tar.xz
community/deadbeef: restore fix for byte order detection
Diffstat (limited to 'community/deadbeef/use-endian-h.patch')
-rw-r--r--community/deadbeef/use-endian-h.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/deadbeef/use-endian-h.patch b/community/deadbeef/use-endian-h.patch
new file mode 100644
index 0000000000..a8829dcb84
--- /dev/null
+++ b/community/deadbeef/use-endian-h.patch
@@ -0,0 +1,11 @@
+--- 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)
+-#if defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && defined(__BIG_ENDIAN)
++#ifdef __linux__
+ // GCC handles this for us
+ #include <endian.h>
+ #if __BYTE_ORDER == __LITTLE_ENDIAN