Selaa lähdekoodia

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

Ozkan Sezer 2 päivää sitten
vanhempi
commit
880ddb9ca3

+ 1 - 1
src/haptic/windows/SDL_dinputhaptic.c

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

+ 1 - 1
src/joystick/windows/SDL_dinputjoystick.c

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