Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2026 10:41:49 +0000
Message-ID:  <6964cfed.27169.24be1eda@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8e8452040df1c254155d7099567d796852d8390b

commit 8e8452040df1c254155d7099567d796852d8390b
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-01-12 09:56:13 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
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<unsigned char *>(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<unsigned char *>(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<unsigned char *>(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<unsigned char *>(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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6964cfed.27169.24be1eda>