Browse Source

Workaround for compiling with MinGW-w64

Fixes bug https://github.com/libsdl-org/SDL/issues/5589
Sam Lantinga 2 years ago
parent
commit
efdf43aa9b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/joystick/windows/SDL_windows_gaming_input.c

+ 5 - 0
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
 {