summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty
diff options
context:
space:
mode:
author inte alls <inte@localhost.localdomain>2017-01-11 20:22:33 +0100
committer inte alls <inte@localhost.localdomain>2017-01-11 20:22:33 +0100
commit37e8b161d80efea67d5bfc71d58d050628ba7820 (patch)
treefde93c3ecec16cc8d6eefe7af8dbba01bb1119cf /3rdparty
parent6b0069a9b65ff912242f82744ac8f8e48f82141e (diff)
Patch PortAudio to fix MinGW compilation
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/portaudio/src/hostapi/wasapi/pa_win_wasapi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/3rdparty/portaudio/src/hostapi/wasapi/pa_win_wasapi.c b/3rdparty/portaudio/src/hostapi/wasapi/pa_win_wasapi.c
index b12b91ffff5..ca4586db9b6 100644
--- a/3rdparty/portaudio/src/hostapi/wasapi/pa_win_wasapi.c
+++ b/3rdparty/portaudio/src/hostapi/wasapi/pa_win_wasapi.c
@@ -55,14 +55,18 @@
// WASAPI
#include <mmreg.h> // must be before other Wasapi headers
-#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+#if defined(_MSC_VER) && (_MSC_VER >= 1400) || (defined(__MINGW64_VERSION_MAJOR) && (__MINGW64_VERSION_MAJOR >= 4))
#include <Avrt.h>
#define COBJMACROS
#include <Audioclient.h>
#include <endpointvolume.h>
#define INITGUID // Avoid additional linkage of static libs, excessive code will be optimized out by the compiler
#include <mmdeviceapi.h>
+#if defined(_MSC_VER) && (_MSC_VER >= 1400)
#include <functiondiscoverykeys.h>
+#else
+ #include <functiondiscoverykeys_devpkey.h>
+#endif
#include <devicetopology.h> // Used to get IKsJackDescription interface
#undef INITGUID
#endif