Skip to content

Commit

Permalink
Fix SDL_PRIs64 to use standard PRId64
Browse files Browse the repository at this point in the history
PRIs64 doesn't exist in C standards.

(cherry picked from commit 8a2cac7)
  • Loading branch information
zturtleman authored and sezero committed Nov 8, 2024
1 parent 74ff82f commit 761ea32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SDL_stdinc.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,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
Expand Down

0 comments on commit 761ea32

Please sign in to comment.