From 37e8b161d80efea67d5bfc71d58d050628ba7820 Mon Sep 17 00:00:00 2001 From: inte alls Date: Wed, 11 Jan 2017 20:22:33 +0100 Subject: [PATCH] Patch PortAudio to fix MinGW compilation --- 3rdparty/portaudio/src/hostapi/wasapi/pa_win_wasapi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 // 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 #define COBJMACROS #include #include #define INITGUID // Avoid additional linkage of static libs, excessive code will be optimized out by the compiler #include +#if defined(_MSC_VER) && (_MSC_VER >= 1400) #include +#else + #include +#endif #include // Used to get IKsJackDescription interface #undef INITGUID #endif