mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 17:37:39 +00:00
Add SDL_PRILL? format specifiers specifically for long long type.
This commit is contained in:
parent
6f80d47d64
commit
254b36361e
2 changed files with 41 additions and 29 deletions
|
@ -714,15 +714,8 @@ static int SDLCALL stdlib_getsetenv(void *arg)
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef SDL_PLATFORM_WINDOWS
|
||||
#define FMT_PRILLd "%lld"
|
||||
#define FMT_PRILLu "%llu"
|
||||
#else
|
||||
/* make sure long long is 64 bits */
|
||||
SDL_COMPILE_TIME_ASSERT(longlong_size64, sizeof(long long) == 8);
|
||||
#define FMT_PRILLd "%I64d"
|
||||
#define FMT_PRILLu "%I64u"
|
||||
#endif
|
||||
#define FMT_PRILLd "%" SDL_PRILLd
|
||||
#define FMT_PRILLu "%" SDL_PRILLu
|
||||
|
||||
/**
|
||||
* Call to SDL_sscanf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue