diff options
author | Santhosh Raju <fox@FreeBSD.org> | 2023-07-15 17:48:34 +0000 |
---|---|---|
committer | Santhosh Raju <fox@FreeBSD.org> | 2023-07-15 17:50:37 +0000 |
commit | 487fb7de399f7800c20bc24215b52720e75a9db7 (patch) | |
tree | cb71b844e37a7c15c6d61a52734e071e60f9d70a /audio/din/files | |
parent | 788dadebf927edb0b9f9e73c1ee4ff22dc224c2c (diff) | |
download | ports-487fb7de399f7800c20bc24215b52720e75a9db7.tar.gz ports-487fb7de399f7800c20bc24215b52720e75a9db7.zip |
Diffstat (limited to 'audio/din/files')
-rw-r--r-- | audio/din/files/patch-src_RtAudio.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/audio/din/files/patch-src_RtAudio.cpp b/audio/din/files/patch-src_RtAudio.cpp new file mode 100644 index 000000000000..255de58f394e --- /dev/null +++ b/audio/din/files/patch-src_RtAudio.cpp @@ -0,0 +1,17 @@ +Add support for compiling in ISO C++17 +--- src/RtAudio.cpp.orig 2023-07-15 17:18:23 UTC ++++ src/RtAudio.cpp +@@ -10050,8 +10050,13 @@ void RtApi :: byteSwapBuffer( char *buffer, unsigned i +
+ void RtApi :: byteSwapBuffer( char *buffer, unsigned int samples, RtAudioFormat format )
+ {
++ #if __cplusplus < 201703L
+ register char val;
+ register char *ptr;
++ #else
++ char val;
++ char *ptr;
++ #endif
+
+ ptr = buffer;
+ if ( format == RTAUDIO_SINT16 ) {
|