diff options
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 ) {
|