From 7307c2d5aa4a5cae73f05451ddbc1c4dcc9fad20 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 1 Nov 2018 21:42:26 -0700 Subject: Workaround some issue with DEFINE_GUID in C++ --- Alc/backends/wasapi.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Alc') diff --git a/Alc/backends/wasapi.cpp b/Alc/backends/wasapi.cpp index d12fbe84..35d67a90 100644 --- a/Alc/backends/wasapi.cpp +++ b/Alc/backends/wasapi.cpp @@ -54,8 +54,10 @@ #include "backends/base.h" -DEFINE_GUID(KSDATAFORMAT_SUBTYPE_PCM, 0x00000001, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71); -DEFINE_GUID(KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, 0x00000003, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71); +extern "C" { +extern const GUID KSDATAFORMAT_SUBTYPE_PCM; +extern const GUID KSDATAFORMAT_SUBTYPE_IEEE_FLOAT; +} // extern "C" DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80,0x20, 0x67,0xd1,0x46,0xa8,0x50,0xe0, 14); DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_FormFactor, 0x1da5d803, 0xd492, 0x4edd, 0x8c,0x23, 0xe0,0xc0,0xff,0xee,0x7f,0x0e, 0); -- cgit v1.2.3