diff options
| author | Faraz Vahedi <kfv@FreeBSD.org> | 2026-09-05 08:28:29 +0000 |
|---|---|---|
| committer | Faraz Vahedi <kfv@FreeBSD.org> | 2026-09-05 08:30:29 +0000 |
| commit | 733ea4ee584db9b25b470ee48243135a321b4eed (patch) | |
| tree | a9479ee6a9af3ee3dce23cdbfb12ec8936414941 | |
| parent | 5aeedaf7204a97b88f04d6a1890dfd1ff02d6101 (diff) | |
libc: Add <inttypes.h> C23 feature test macro
Define __STDC_VERSION_INTTYPES_H__ now that the header fully
conforms to C23.
Reviewed by: fuz
Approved by: fuz (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D59382
| -rw-r--r-- | include/inttypes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/inttypes.h b/include/inttypes.h index 26d2065045cb..b7ac60eb6322 100644 --- a/include/inttypes.h +++ b/include/inttypes.h @@ -29,6 +29,12 @@ #ifndef _INTTYPES_H_ #define _INTTYPES_H_ +#include <sys/cdefs.h> + +#if __ISO_C_VISIBLE >= 2023 || __BSD_VISIBLE +#define __STDC_VERSION_INTTYPES_H__ 202311L +#endif + #include <machine/_inttypes.h> #include <sys/stdint.h> |
