From 6f859d90f1598b4fa3201c10ede0dc3f8fb96951 Mon Sep 17 00:00:00 2001
From: Zack Middleton <[EMAIL REDACTED]>
Date: Thu, 7 Nov 2024 23:10:57 -0600
Subject: [PATCH] Fix SDL_PRIs64 to use standard PRId64
PRIs64 doesn't exist in C standards.
(cherry picked from commit 8a2cac7aaade086fce7c8e645fca606371da13d7)
(cherry picked from commit 761ea32b74bb466055b3455c2d2241b3a2d89aa9)
---
include/SDL_stdinc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h
index 8eb757957d58e..81e4bd4bf8ab4 100644
--- a/include/SDL_stdinc.h
+++ b/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