From 5196719f298a73ca9e57dde96da2ecbf2511574d Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 23 Feb 2022 21:45:44 +0100 Subject: [PATCH] device: Fix XInput compile error compiling for newer Windows versions --- panda/src/device/xInputDevice.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/device/xInputDevice.cxx b/panda/src/device/xInputDevice.cxx index bcc44cd3b1..70b7d5bf3f 100644 --- a/panda/src/device/xInputDevice.cxx +++ b/panda/src/device/xInputDevice.cxx @@ -70,7 +70,7 @@ // With MingW32 this raises the error: // Redefinition of '_XINPUT_BATTERY_INFORMATION' -#ifdef _MSC_VER +#if defined(_MSC_VER) && _WIN32_WINNT < 0x0602 typedef struct _XINPUT_BATTERY_INFORMATION { BYTE BatteryType; BYTE BatteryLevel;