msvc x86 build fix

This commit is contained in:
flyinghead 2022-06-10 17:57:53 +02:00
parent 3780299803
commit 7ab92d88b1
1 changed files with 3 additions and 0 deletions

View File

@ -327,6 +327,8 @@ static void destroyWindow()
UnregisterClassA("flycastRawInput", nullptr);
}
#ifndef _MSC_VER
// missing from mingw's cfgmgr32.h
extern "C" CMAPI CONFIGRET CM_Get_Device_Interface_PropertyW(
LPCWSTR pszDeviceInterface,
const DEVPROPKEY *PropertyKey,
@ -334,6 +336,7 @@ extern "C" CMAPI CONFIGRET CM_Get_Device_Interface_PropertyW(
PBYTE PropertyBuffer,
PULONG PropertyBufferSize,
ULONG ulFlags);
#endif
static void findDevices()
{