From b1c7b2f44f4aa9c80700911703e40795a8de3fcb Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 29 May 2024 22:40:50 +0300 Subject: [PATCH] SDL_wasapi.c: avoid unused warning if IAudioClient3 isn't available --- src/audio/wasapi/SDL_wasapi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/audio/wasapi/SDL_wasapi.c b/src/audio/wasapi/SDL_wasapi.c index 54322742d3..c3c8c49d7f 100644 --- a/src/audio/wasapi/SDL_wasapi.c +++ b/src/audio/wasapi/SDL_wasapi.c @@ -46,7 +46,9 @@ // Some GUIDs we need to know without linking to libraries that aren't available before Vista. static const IID SDL_IID_IAudioRenderClient = { 0xf294acfc, 0x3146, 0x4483, { 0xa7, 0xbf, 0xad, 0xdc, 0xa7, 0xc2, 0x60, 0xe2 } }; static const IID SDL_IID_IAudioCaptureClient = { 0xc8adbd64, 0xe71e, 0x48a0, { 0xa4, 0xde, 0x18, 0x5c, 0x39, 0x5c, 0xd3, 0x17 } }; +#ifdef __IAudioClient3_INTERFACE_DEFINED__ static const IID SDL_IID_IAudioClient3 = { 0x7ed4ee07, 0x8e67, 0x4cd4, { 0x8c, 0x1a, 0x2b, 0x7a, 0x59, 0x87, 0xad, 0x42 } }; +#endif /**/ // WASAPI is _really_ particular about various things happening on the same thread, for COM and such,