From d2c4d74dd0302369251dce9375b49f394e54f76a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 27 May 2022 15:49:35 -0700 Subject: [PATCH] Fixed build with MinGW-64 windows.devices.power.h The MinGW-64 header defines the parameters as ABI::Windows::Foundation::IReference **, but the Windows header defines the parameters as __FIReference_1_int** --- src/joystick/windows/SDL_windows_gaming_input.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/joystick/windows/SDL_windows_gaming_input.c b/src/joystick/windows/SDL_windows_gaming_input.c index 8b552bb7d..a266d4b5c 100644 --- a/src/joystick/windows/SDL_windows_gaming_input.c +++ b/src/joystick/windows/SDL_windows_gaming_input.c @@ -35,6 +35,13 @@ #include +#ifdef ____FIReference_1_INT32_INTERFACE_DEFINED__ +/* MinGW-64 uses __FIReference_1_INT32 instead of Microsoft's __FIReference_1_int */ +#define __FIReference_1_int __FIReference_1_INT32 +#define __FIReference_1_int_get_Value __FIReference_1_INT32_get_Value +#define __FIReference_1_int_Release __FIReference_1_INT32_Release +#endif + struct joystick_hwdata { __x_ABI_CWindows_CGaming_CInput_CIRawGameController *controller;