device: Fix XInput compile error compiling for newer Windows versions

This commit is contained in:
rdb 2022-02-23 21:45:44 +01:00
parent fd033e66f1
commit 5196719f29

View File

@ -70,7 +70,7 @@
// With MingW32 this raises the error: // With MingW32 this raises the error:
// Redefinition of '_XINPUT_BATTERY_INFORMATION' // Redefinition of '_XINPUT_BATTERY_INFORMATION'
#ifdef _MSC_VER #if defined(_MSC_VER) && _WIN32_WINNT < 0x0602
typedef struct _XINPUT_BATTERY_INFORMATION { typedef struct _XINPUT_BATTERY_INFORMATION {
BYTE BatteryType; BYTE BatteryType;
BYTE BatteryLevel; BYTE BatteryLevel;