Codebase list squeezelite / f10d8962-f91d-4733-a36b-dfeeab73cc4c/main alpine / libalac / fix-arm-segfault.patch
f10d8962-f91d-4733-a36b-dfeeab73cc4c/main

Tree @f10d8962-f91d-4733-a36b-dfeeab73cc4c/main (Download .tar.gz)

fix-arm-segfault.patch @f10d8962-f91d-4733-a36b-dfeeab73cc4c/mainraw · history · blame

diff --git a/codec/EndianPortable.c b/codec/EndianPortable.c
index 5a7d5b8..b8423c9 100644
--- a/codec/EndianPortable.c
+++ b/codec/EndianPortable.c
@@ -40,6 +40,8 @@
 #define TARGET_RT_LITTLE_ENDIAN 1
 #elif defined (TARGET_OS_WIN32)
 #define TARGET_RT_LITTLE_ENDIAN 1
+#elif defined (__arm__) || defined(__aarch64__)
+#define TARGET_RT_LITTLE_ENDIAN 1
 #endif
 
 uint16_t Swap16NtoB(uint16_t inUInt16)