diff options
| author | Jason E. Hale <jhale@FreeBSD.org> | 2025-10-15 05:09:06 -0400 |
|---|---|---|
| committer | Jason E. Hale <jhale@FreeBSD.org> | 2025-10-15 05:20:51 -0400 |
| commit | 11b21784e3cc078f3503d936a9966bd1b70c4288 (patch) | |
| tree | d076fb580d0864ed486b9ddd6e8a3469a20a6eff /audio/mac/files/patch-Source_Shared_All.h | |
| parent | converters/dos2ansi: Grab and undeprecate (diff) | |
audio/mac: Update to 11.62
Fix runtime for little endian archs. At least on amd64, _BIG_ENDIAN is
defined somewhere in the toolchain, causing the byte order to be
reversed. [1]
Patch the correct "All.h" and apply DOS2UNIX to all patched files.
https://www.monkeysaudio.com/versionhistory.html
Reported by: <monochrome@twcny.rr.com> via private mail [1]
MFH: 2025Q4
Diffstat (limited to 'audio/mac/files/patch-Source_Shared_All.h')
| -rw-r--r-- | audio/mac/files/patch-Source_Shared_All.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/audio/mac/files/patch-Source_Shared_All.h b/audio/mac/files/patch-Source_Shared_All.h new file mode 100644 index 000000000000..d7748cd159f8 --- /dev/null +++ b/audio/mac/files/patch-Source_Shared_All.h @@ -0,0 +1,27 @@ +We need to define PLATFORM_LINUX as the default if consumers don't do so. + +Fix runtime for little endian archs. At least on amd64, _BIG_ENDIAN is defined +somewhere in the toolchain, causing the byte order to be reversed. + +--- Source/Shared/All.h.orig 2025-10-15 08:20:58 UTC ++++ Source/Shared/All.h +@@ -10,8 +10,8 @@ PLATFORM_ANDROID + PLATFORM_ANDROID + **************************************************************************************************/ + #if !defined(PLATFORM_WINDOWS) && !defined(PLATFORM_APPLE) && !defined(PLATFORM_LINUX) && !defined(PLATFORM_ANDROID) +- #pragma message("No platform set for MACLib, defaulting to Windows") +- #define PLATFORM_WINDOWS ++ #pragma message("No platform set for MACLib, defaulting to Linux") ++ #define PLATFORM_LINUX + #endif + + #ifdef PLATFORM_ANDROID +@@ -311,7 +311,7 @@ Byte order + #define APE_LITTLE_ENDIAN 1234 + #define APE_BIG_ENDIAN 4321 + +-#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__) || (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)) ++#if defined(__BIG_ENDIAN__) || (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)) + #define APE_BYTE_ORDER APE_BIG_ENDIAN + #else + #define APE_BYTE_ORDER APE_LITTLE_ENDIAN |
