SDL_dinputhaptic.c, SDL_dinputjoystick.c: replace %lu usage with new cygwin-friendly macros.

This commit is contained in:
Ozkan Sezer 2026-05-16 08:44:40 +03:00 committed by Özkan Sezer
parent e972e6a01b
commit 880ddb9ca3
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);