git: 487fb7de399f - main - audio/din: Fix build failures for clang 16.0.6

From: Santhosh Raju <fox_at_FreeBSD.org>
Date: Sat, 15 Jul 2023 17:51:22 UTC
The branch main has been updated by fox:

URL: https://cgit.FreeBSD.org/ports/commit/?id=487fb7de399f7800c20bc24215b52720e75a9db7

commit 487fb7de399f7800c20bc24215b52720e75a9db7
Author:     Santhosh Raju <fox@FreeBSD.org>
AuthorDate: 2023-07-15 17:48:34 +0000
Commit:     Santhosh Raju <fox@FreeBSD.org>
CommitDate: 2023-07-15 17:50:37 +0000

    audio/din: Fix build failures for clang 16.0.6
    
    Remove "register" keyword, which is not supported in ISO C++17.
    
    Change applies to 14.0-CURRENT (1400092 and above).
---
 audio/din/files/patch-src_RtAudio.cpp | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

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