Patch PortAudio to fix MinGW compilation

This commit is contained in:
inte alls 2017-01-11 20:22:33 +01:00
parent 6b0069a9b6
commit 37e8b161d8

View File

@ -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