diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-03-31 08:17:00 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-03-31 08:17:00 +0200 |
| commit | f297dab1f26f9bab26a0b3ffa422ecb6cdb85032 (patch) | |
| tree | 213b88d64ccd6cc8e59ca3eb928b519ba6879e73 | |
| parent | ff52258e15ce236d6db69b56cf0735d98e075eeb (diff) | |
PRIsN is not defined according to C99. Instead, PRIdN and PRIiN are the
macros defined for signed integers.
| -rw-r--r-- | libpsx/include/inttypes.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libpsx/include/inttypes.h b/libpsx/include/inttypes.h index 3ee09c7..a67c83a 100644 --- a/libpsx/include/inttypes.h +++ b/libpsx/include/inttypes.h @@ -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" |
