mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
Patch PortAudio to fix MinGW compilation
This commit is contained in:
parent
6b0069a9b6
commit
37e8b161d8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user