forked from shinchiro/mpv-winbuild-cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add libsdl2 patch so it actually builds
- Loading branch information
1 parent
3ec0c69
commit e6d22e9
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/src/joystick/windows/SDL_windows_gaming_input.c b/src/joystick/windows/SDL_windows_gaming_input.c | ||
index 8b552bb..c1608a7 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 | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters