Fix PortAudio MinGW cross-compilation

This commit is contained in:
intealls 2017-01-15 19:59:31 +01:00
parent fa6442a5e6
commit 28aa7060f8

View File

@ -56,9 +56,9 @@
// WASAPI // WASAPI
#include <mmreg.h> // must be before other Wasapi headers #include <mmreg.h> // must be before other Wasapi headers
#if defined(_MSC_VER) && (_MSC_VER >= 1400) || (defined(__MINGW64_VERSION_MAJOR) && (__MINGW64_VERSION_MAJOR >= 4)) #if defined(_MSC_VER) && (_MSC_VER >= 1400) || (defined(__MINGW64_VERSION_MAJOR) && (__MINGW64_VERSION_MAJOR >= 4))
#include <Avrt.h> #include <avrt.h>
#define COBJMACROS #define COBJMACROS
#include <Audioclient.h> #include <audioclient.h>
#include <endpointvolume.h> #include <endpointvolume.h>
#define INITGUID // Avoid additional linkage of static libs, excessive code will be optimized out by the compiler #define INITGUID // Avoid additional linkage of static libs, excessive code will be optimized out by the compiler
#include <mmdeviceapi.h> #include <mmdeviceapi.h>