inttypes.h: Fix wrong definitions

PRIsN is not defined according to C99. Instead, PRIdN and PRIiN are the
macros defined for signed integers.
This commit is contained in:
Xavier Del Campo Romero 2024-03-31 08:17:00 +02:00
parent ff52258e15
commit f297dab1f2
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 9 additions and 4 deletions

View File

@ -10,10 +10,15 @@
#define PRIu32 "u"
#define PRIu64 "llu"
#define PRIs8 "hhd"
#define PRIs16 "hd"
#define PRIs32 "d"
#define PRIs64 "lld"
#define PRId8 "hhd"
#define PRId16 "hd"
#define PRId32 "d"
#define PRId64 "lld"
#define PRIi8 "hhi"
#define PRIi16 "hi"
#define PRIi32 "i"
#define PRIi64 "lli"
#define PRIuLEAST8 "hhu"
#define PRIuLEAST16 "hu"