# SDL: Fix SDL\_PRIs64 to use standard PRId64 (6f859)

**URL:** <https://discourse.libsdl.org/t/sdl-fix-sdl-pris64-to-use-standard-prid64-6f859/55543>\
**Category:** SDL Commits\
**Created:** [November 15, 2024, 6:15pm UTC](https://discourse.libsdl.org/t/sdl-fix-sdl-pris64-to-use-standard-prid64-6f859/55543 "2024-11-15T18:15:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [November 15, 2024, 6:15pm UTC](https://discourse.libsdl.org/t/sdl-fix-sdl-pris64-to-use-standard-prid64-6f859/55543/1 "2024-11-15T18:15:16Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/6f859d90f1598b4fa3201c10ede0dc3f8fb96951>
>
> PRIs64 doesn't exist in C standards.
> 
> (cherry picked from commit 8a2cac7aaade086…fce7c8e645fca606371da13d7)
> (cherry picked from commit 761ea32b74bb466055b3455c2d2241b3a2d89aa9)

```diff
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

```
