[emscripten] Fixes for data addresses above 2gb

This includes both wasm64 and wasm32 when addressing more than 2gb of
memory.

Fixes: #9052
This commit is contained in:
Sam Clegg
2024-10-07 16:45:03 -07:00
committed by Ryan C. Gordon
parent da19244f7f
commit 3deb07ea39
4 changed files with 10 additions and 4 deletions

View File

@@ -269,7 +269,7 @@ typedef uint64_t Uint64;
#define SDL_PRIs64 "I64d"
#elif defined(PRIs64)
#define SDL_PRIs64 PRIs64
#elif defined(__LP64__) && !defined(__APPLE__)
#elif defined(__LP64__) && !defined(__APPLE__) && !defined(__EMSCRIPTEN__)
#define SDL_PRIs64 "ld"
#else
#define SDL_PRIs64 "lld"