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