[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    xaudio2_7: Only declare debug channel when needed.
From:       Sebastian Lackner <sebastian () fds-team ! de>
Date:       2016-07-31 18:01:04
Message-ID: b95c22d7-cfa7-0ae8-0d85-d25b89d29e19 () fds-team ! de
[Download RAW message or body]

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
---
 dlls/xaudio2_7/compat.c   |    2 ++
 dlls/xaudio2_7/x3daudio.c |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/dlls/xaudio2_7/compat.c b/dlls/xaudio2_7/compat.c
index 516d6c2..b9e720f 100644
--- a/dlls/xaudio2_7/compat.c
+++ b/dlls/xaudio2_7/compat.c
@@ -101,7 +101,9 @@
 
 #include "wine/debug.h"
 
+#if XAUDIO2_VER <= 7
 WINE_DEFAULT_DEBUG_CHANNEL(xaudio2);
+#endif
 
 /* BEGIN IXAudio2SourceVoice */
 #if XAUDIO2_VER == 0
diff --git a/dlls/xaudio2_7/x3daudio.c b/dlls/xaudio2_7/x3daudio.c
index a182852..58f7062 100644
--- a/dlls/xaudio2_7/x3daudio.c
+++ b/dlls/xaudio2_7/x3daudio.c
@@ -23,7 +23,9 @@
 
 #include "wine/debug.h"
 
+#if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER
 WINE_DEFAULT_DEBUG_CHANNEL(xaudio2);
+#endif
 
 #ifdef X3DAUDIO1_VER
 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved)
-- 
2.9.0



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic