Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mnhauke:mingw:win32:sdr
mingw32-SDL2
fix-building-with-mingw-header-12.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-building-with-mingw-header-12.patch of Package mingw32-SDL2
--- SDL2-2.30.0/src/core/windows/SDL_xinput.h.orig 2024-11-12 22:27:30.951723722 +0100 +++ SDL2-2.30.0/src/core/windows/SDL_xinput.h 2024-11-12 22:27:51.448488125 +0100 @@ -211,6 +211,7 @@ #endif /* HAVE_XINPUT_H */ +#if 0 /* This struct is not defined in XInput headers. */ typedef struct _XINPUT_CAPABILITIES_EX { @@ -221,6 +222,7 @@ WORD unk1; DWORD unk2; } XINPUT_CAPABILITIES_EX, *PXINPUT_CAPABILITIES_EX; +#endif /* Forward decl's for XInput API's we load dynamically and use if available */ typedef DWORD(WINAPI *XInputGetState_t)( --- a/src/joystick/windows/SDL_xinputjoystick.c 2024-11-12 21:38:21.928156982 +0000 +++ b/src/joystick/windows/SDL_xinputjoystick.c 2024-11-12 21:38:31.904533364 +0000 @@ -136,7 +136,7 @@ *pPID = capabilities.ProductId; } if (pVersion) { - *pVersion = capabilities.ProductVersion; + *pVersion = capabilities.VersionNumber; } return SDL_TRUE; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor