summaryrefslogtreecommitdiff
path: root/3rdparty/portaudio/src/hostapi/wasapi/mingw-include/ksguid.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-27 23:52:56 -0500
committersanine <sanine.not@pm.me>2022-08-27 23:52:56 -0500
commita4dd0ad63c00f4dee3b86dfd3075d1d61b2b3180 (patch)
tree13bd5bfa15e6fea2a12f176bae79adf9c6fd0933 /3rdparty/portaudio/src/hostapi/wasapi/mingw-include/ksguid.h
parentbde3e4f1bb7b8f8abca0884a7d994ee1c17a66b1 (diff)
add plibsys
Diffstat (limited to '3rdparty/portaudio/src/hostapi/wasapi/mingw-include/ksguid.h')
-rw-r--r--3rdparty/portaudio/src/hostapi/wasapi/mingw-include/ksguid.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/3rdparty/portaudio/src/hostapi/wasapi/mingw-include/ksguid.h b/3rdparty/portaudio/src/hostapi/wasapi/mingw-include/ksguid.h
new file mode 100644
index 0000000..f0774d0
--- /dev/null
+++ b/3rdparty/portaudio/src/hostapi/wasapi/mingw-include/ksguid.h
@@ -0,0 +1,28 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the w64 mingw-runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+#define INITGUID
+#include <guiddef.h>
+
+#ifndef DECLSPEC_SELECTANY
+#define DECLSPEC_SELECTANY __declspec(selectany)
+#endif
+
+#ifdef DEFINE_GUIDEX
+#undef DEFINE_GUIDEX
+#endif
+
+#ifdef __cplusplus
+#define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID DECLSPEC_SELECTANY name = { STATICGUIDOF(name) }
+#else
+#define DEFINE_GUIDEX(name) const CDECL GUID DECLSPEC_SELECTANY name = { STATICGUIDOF(name) }
+#endif
+#ifndef STATICGUIDOF
+#define STATICGUIDOF(guid) STATIC_##guid
+#endif
+
+#ifndef DEFINE_WAVEFORMATEX_GUID
+#define DEFINE_WAVEFORMATEX_GUID(x) (USHORT)(x),0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71
+#endif