From 7ab92d88b178a8275b1ef62b57c643742ec72e64 Mon Sep 17 00:00:00 2001 From: flyinghead Date: Fri, 10 Jun 2022 17:57:53 +0200 Subject: [PATCH] msvc x86 build fix --- core/windows/rawinput.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/windows/rawinput.cpp b/core/windows/rawinput.cpp index 3058beffb..a8a0af259 100644 --- a/core/windows/rawinput.cpp +++ b/core/windows/rawinput.cpp @@ -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() {