The branch main has been updated by kfv: URL: https://cgit.FreeBSD.org/src/commit/?id=733ea4ee584db9b25b470ee48243135a321b4eed
commit 733ea4ee584db9b25b470ee48243135a321b4eed Author: Faraz Vahedi <[email protected]> AuthorDate: 2026-09-05 08:28:29 +0000 Commit: Faraz Vahedi <[email protected]> CommitDate: 2026-09-05 08:30:29 +0000 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 --- include/inttypes.h | 6 ++++++ 1 file changed, 6 insertions(+) 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>
