Browse Source

SDL_wasapi.c: avoid unused warning if IAudioClient3 isn't available

Ozkan Sezer 10 months ago
parent
commit
b1c7b2f44f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/audio/wasapi/SDL_wasapi.c

+ 2 - 0
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,