mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 15:55:22 +00:00
SDL_dinputhaptic.c, SDL_dinputjoystick.c: replace %lu usage with new cygwin-friendly macros.
This commit is contained in:
@@ -90,7 +90,7 @@ bool SDL_DINPUT_HapticInit(void)
|
||||
instance = GetModuleHandle(NULL);
|
||||
if (!instance) {
|
||||
SDL_SYS_HapticQuit();
|
||||
return SDL_SetError("GetModuleHandle() failed with error code %lu.",
|
||||
return SDL_SetError("GetModuleHandle() failed with error code %" SDL_PRIuULONG ".",
|
||||
GetLastError());
|
||||
}
|
||||
ret = IDirectInput8_Initialize(dinput, instance, DIRECTINPUT_VERSION);
|
||||
|
||||
@@ -431,7 +431,7 @@ bool SDL_DINPUT_JoystickInit(void)
|
||||
if (!instance) {
|
||||
IDirectInput8_Release(dinput);
|
||||
dinput = NULL;
|
||||
return SDL_SetError("GetModuleHandle() failed with error code %lu.", GetLastError());
|
||||
return SDL_SetError("GetModuleHandle() failed with error code %" SDL_PRIuULONG ".", GetLastError());
|
||||
}
|
||||
result = IDirectInput8_Initialize(dinput, instance, DIRECTINPUT_VERSION);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user