aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaraz Vahedi <kfv@FreeBSD.org>2026-08-24 13:47:15 +0000
committerFaraz Vahedi <kfv@FreeBSD.org>2026-08-24 13:47:15 +0000
commitfc9d02cb29ed8505eeb4f90348b7318ddcfae434 (patch)
tree6df1bc886b6659989dbecb472ef956ca64cb4e4b
parent2712d1380fcd8dd61d043b2242f20767e8f2f347 (diff)
libc: Add <time.h> 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
-rw-r--r--include/time.h5
1 files 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 <sys/cdefs.h>
#include <sys/_null.h>
#include <sys/_types.h>