From fc9d02cb29ed8505eeb4f90348b7318ddcfae434 Mon Sep 17 00:00:00 2001 From: Faraz Vahedi Date: Mon, 24 Aug 2026 17:17:15 +0330 Subject: [PATCH] libc: Add C23 feature test macro Define the __STDC_VERSION_TIME_H__ feature test macro as the header fully conforms to C23. Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D59134 --- include/time.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/time.h b/include/time.h index 295df3b5790a..fed2805e03f1 100644 --- a/include/time.h +++ b/include/time.h @@ -34,12 +34,11 @@ * SUCH DAMAGE. */ -/* - */ - #ifndef _TIME_H_ #define _TIME_H_ +#define __STDC_VERSION_TIME_H__ 202311L + #include #include #include