SDL: Workaround for compiling with MinGW-w64

From efdf43aa9b4f4d623ffba01f503d9793d5021330 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 27 May 2022 15:34:45 -0700
Subject: [PATCH] Workaround for compiling with MinGW-w64

Fixes bug https://github.com/libsdl-org/SDL/issues/5589
---
 src/joystick/windows/SDL_windows_gaming_input.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/joystick/windows/SDL_windows_gaming_input.c b/src/joystick/windows/SDL_windows_gaming_input.c
index 8b552bb7dad..c1608a797ae 100644
--- a/src/joystick/windows/SDL_windows_gaming_input.c
+++ b/src/joystick/windows/SDL_windows_gaming_input.c
@@ -34,6 +34,11 @@
 #include <cfgmgr32.h>
 #include <roapi.h>
 
+#ifdef __MINGW32__
+#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
 {