fs/heads/main X-Git-Reftype: branch X-Git-Commit: 8e8452040df1c254155d7099567d796852d8390b Auto-Submitted: auto-generated Date: Mon, 12 Jan 2026 10:41:49 +0000 Message-Id: <6964cfed.27169.24be1eda@gitrepo.freebsd.org> The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=8e8452040df1c254155d7099567d796852d8390b commit 8e8452040df1c254155d7099567d796852d8390b Author: Piotr Kubaj AuthorDate: 2026-01-12 09:56:13 +0000 Commit: Piotr Kubaj CommitDate: 2026-01-12 10:41:43 +0000 audio/mac: fix build on big-endian /wrkdirs/usr/ports/audio/mac/work/mac-11.91/Source/MACLib/Prepare.cpp:35:5: error: use of undeclared identifier 'SwitchBufferBytes' 35 | SwitchBufferBytes(const_cast(pRawData), pWaveFormatEx->wBitsPerSample / 8, nTotalBlocks * pWaveFormatEx->nChannels); | ^ /wrkdirs/usr/ports/audio/mac/work/mac-11.91/Source/MACLib/Prepare.cpp:41:5: error: use of undeclared identifier 'SwitchBufferBytes' 41 | SwitchBufferBytes(const_cast(pRawData), pWaveFormatEx->wBitsPerSample / 8, nTotalBlocks * pWaveFormatEx->nChannels); | ^ /wrkdirs/usr/ports/audio/mac/work/mac-11.91/Source/MACLib/Prepare.cpp:980:5: error: use of undeclared identifier 'SwitchBufferBytes' 980 | SwitchBufferBytes(const_cast(pRawData), pWaveFormatEx->wBitsPerSample / 8, nBlocks * pWaveFormatEx->nChannels); | ^ /wrkdirs/usr/ports/audio/mac/work/mac-11.91/Source/MACLib/Prepare.cpp:987:5: error: use of undeclared identifier 'SwitchBufferBytes' 987 | SwitchBufferBytes(const_cast(pRawData), pWaveFormatEx->wBitsPerSample / 8, nBlocks * pWaveFormatEx->nChannels); | ^ 4 errors generated. --- audio/mac/Makefile | 1 + audio/mac/files/patch-Source_MACLib_Prepare.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/audio/mac/Makefile b/audio/mac/Makefile index 8a95ba69933f..624956e1d168 100644 --- a/audio/mac/Makefile +++ b/audio/mac/Makefile @@ -15,6 +15,7 @@ USES= cmake dos2unix zip DOS2UNIX_FILES= Shared/*.h \ Source/Console/*.cpp \ + Source/MACLib/Prepare.cpp \ Source/Shared/*.cpp \ Source/Shared/*.h diff --git a/audio/mac/files/patch-Source_MACLib_Prepare.cpp b/audio/mac/files/patch-Source_MACLib_Prepare.cpp new file mode 100644 index 000000000000..0a535df31f0b --- /dev/null +++ b/audio/mac/files/patch-Source_MACLib_Prepare.cpp @@ -0,0 +1,12 @@ +--- Source/MACLib/Prepare.cpp.orig 2026-01-12 09:35:06 UTC ++++ Source/MACLib/Prepare.cpp +@@ -1,6 +1,9 @@ + #include "All.h" + #include "Prepare.h" + #include "CRC.h" ++#if APE_BYTE_ORDER == APE_BIG_ENDIAN ++#include "GlobalFunctions.h" ++#endif + + #if APE_BYTE_ORDER == APE_LITTLE_ENDIAN + #define APE_24_SHIFT_1ST 0