aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/wasapi.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-01 21:42:26 -0700
committerChris Robinson <[email protected]>2018-11-01 21:42:26 -0700
commit7307c2d5aa4a5cae73f05451ddbc1c4dcc9fad20 (patch)
treef8b0d06491a522603484f87b6db8b9684687e470 /Alc/backends/wasapi.cpp
parenta90b17113a40d1ebb557eac3c89d61681e43ee9c (diff)
Workaround some issue with DEFINE_GUID in C++
Diffstat (limited to 'Alc/backends/wasapi.cpp')
-rw-r--r--Alc/backends/wasapi.cpp6
1 files changed, 4 insertions, 2 deletions
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);