Commit cc152103ba11c890848c991d7ddf281b3b1f1e14

Sam Lantinga 2022-03-17T11:37:08

Fixed warnings when building with cygwin Fixes https://github.com/libsdl-org/SDL/issues/5025

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/events/SDL_events.c b/src/events/SDL_events.c
index 9609fb6..4b6fe60 100644
--- a/src/events/SDL_events.c
+++ b/src/events/SDL_events.c
@@ -35,7 +35,7 @@
 #include "SDL_syswm.h"
 
 #undef SDL_PRIs64
-#ifdef __WIN32__
+#if defined(__WIN32__) && !defined(__CYGWIN__)
 #define SDL_PRIs64  "I64d"
 #else
 #define SDL_PRIs64  "lld"