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.
  • Loading branch information
zturtleman authored and sezero committed Nov 8, 2024
1 parent 54ff1f3 commit 8a2cac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SDL3/SDL_stdinc.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ typedef Sint64 SDL_Time;
#ifndef SDL_PRIs64
#if defined(SDL_PLATFORM_WINDOWS)
#define SDL_PRIs64 "I64d"
#elif defined(PRIs64)
#define SDL_PRIs64 PRIs64
#elif defined(PRId64)
#define SDL_PRIs64 PRId64
#elif defined(__LP64__) && !defined(SDL_PLATFORM_APPLE) && !defined(__EMSCRIPTEN__)
#define SDL_PRIs64 "ld"
#else
Expand Down

0 comments on commit 8a2cac7

Please sign in to comment.