Skip to content

Commit df22afa

Browse files
committed
added PRI24 and SCN24 to <inttypes.h>
1 parent d9d0f24 commit df22afa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/libc/include/inttypes.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@
4242
#define PRIxLEAST16 __UINT_LEAST16_FMTx__
4343
#define PRIXLEAST16 __UINT_LEAST16_FMTX__
4444

45+
#ifdef __INT24_TYPE__
46+
#define PRId24 __INT24_FMTd__
47+
#define PRIi24 __INT24_FMTi__
48+
#define PRIo24 __UINT24_FMTo__
49+
#define PRIu24 __UINT24_FMTu__
50+
#define PRIx24 __UINT24_FMTx__
51+
#define PRIX24 __UINT24_FMTX__
52+
#endif /*__INT24_TYPE_*/
53+
4554
#define PRId32 __INT32_FMTd__
4655
#define PRIi32 __INT32_FMTi__
4756
#define PRIo32 __UINT32_FMTo__
@@ -126,6 +135,14 @@
126135
#define SCNuLEAST16 __UINT_LEAST16_FMTu__
127136
#define SCNxLEAST16 __UINT_LEAST16_FMTx__
128137

138+
#ifdef __INT24_TYPE__
139+
#define SCNd24 __INT24_FMTd__
140+
#define SCNi24 __INT24_FMTi__
141+
#define SCNo24 __UINT24_FMTo__
142+
#define SCNu24 __UINT24_FMTu__
143+
#define SCNx24 __UINT24_FMTx__
144+
#endif /*__INT24_TYPE_*/
145+
129146
#define SCNd32 __INT32_FMTd__
130147
#define SCNi32 __INT32_FMTi__
131148
#define SCNo32 __UINT32_FMTo__

0 commit comments

Comments
 (0)