Browse Source

Fix SDL_PRIs64 to use standard PRId64

PRIs64 doesn't exist in C standards.

(cherry picked from commit 8a2cac7aaade086fce7c8e645fca606371da13d7)
(cherry picked from commit 761ea32b74bb466055b3455c2d2241b3a2d89aa9)
Zack Middleton 5 months ago
parent
commit
6f859d90f1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/SDL_stdinc.h

+ 2 - 2
include/SDL_stdinc.h

@@ -255,8 +255,8 @@ typedef uint64_t Uint64;
 #ifndef SDL_PRIs64
 #if defined(__WIN32__) || defined(__GDK__)
 #define SDL_PRIs64 "I64d"
-#elif defined(PRIs64)
-#define SDL_PRIs64 PRIs64
+#elif defined(PRId64)
+#define SDL_PRIs64 PRId64
 #elif defined(__LP64__) && !defined(__APPLE__) && !defined(__EMSCRIPTEN__)
 #define SDL_PRIs64 "ld"
 #else