From 6048f7252c4dacdd6cb49b10ddae798fcc66b01b Mon Sep 17 00:00:00 2001
From: Tim Blechmann <tim.blechmann@qt.io>
Date: Mon, 9 Feb 2026 09:35:02 +0800
Subject: [PATCH] 3rdparty: drwav - namespace implementation

Change-Id: I0daf6fc825e2cabb8123fb7fa4c36bc423e96169
---
 src/3rdparty/dr_libs/dr_wav.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/3rdparty/dr_libs/dr_wav.h b/src/3rdparty/dr_libs/dr_wav.h
index f2d861b08..903f653bf 100644
--- a/src/3rdparty/dr_libs/dr_wav.h
+++ b/src/3rdparty/dr_libs/dr_wav.h
@@ -148,12 +148,14 @@ extern "C" {
 #define DRWAV_VERSION_MAJOR     0
 #define DRWAV_VERSION_MINOR     14
 #define DRWAV_VERSION_REVISION  4
 #define DRWAV_VERSION_STRING    DRWAV_XSTRINGIFY(DRWAV_VERSION_MAJOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_MINOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_REVISION)
 
 #include <stddef.h> /* For size_t. */
+QT_BEGIN_NAMESPACE
+namespace QtPrivate {
 
 /* Sized Types */
 typedef   signed char           drwav_int8;
 typedef unsigned char           drwav_uint8;
 typedef   signed short          drwav_int16;
 typedef unsigned short          drwav_uint16;
@@ -1338,12 +1340,14 @@ DRWAV_API float drwav_bytes_to_f32(const drwav_uint8* data);
 /* Compares a GUID for the purpose of checking the type of a Wave64 chunk. */
 DRWAV_API drwav_bool32 drwav_guid_equal(const drwav_uint8 a[16], const drwav_uint8 b[16]);
 
 /* Compares a four-character-code for the purpose of checking the type of a RIFF chunk. */
 DRWAV_API drwav_bool32 drwav_fourcc_equal(const drwav_uint8* a, const char* b);
 
+} // namespace QtPrivate
+QT_END_NAMESPACE
 #ifdef __cplusplus
 }
 #endif
 #endif  /* dr_wav_h */
 
 
@@ -1485,12 +1489,16 @@ DRWAV_API drwav_bool32 drwav_fourcc_equal(const drwav_uint8* a, const char* b);
     #endif
     #if ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))
         #define DRWAV_HAS_BYTESWAP16_INTRINSIC
     #endif
 #endif
 
+QT_BEGIN_NAMESPACE
+namespace QtPrivate {
+
+
 DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_uint32* pRevision)
 {
     if (pMajor) {
         *pMajor = DRWAV_VERSION_MAJOR;
     }
 
@@ -8535,12 +8543,15 @@ DRWAV_API drwav_bool32 drwav_fourcc_equal(const drwav_uint8* a, const char* b)
 
 #ifdef __MRC__
 /* Undo the pragma at the beginning of this file. */
 #pragma options opt reset
 #endif
 
+} // namespace QtPrivate
+QT_END_NAMESPACE
+
 #endif  /* dr_wav_c */
 #endif  /* DR_WAV_IMPLEMENTATION */
 
 /*
 REVISION HISTORY
 ================
-- 
2.51.0

