aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaraz Vahedi <kfv@kfv.io>2026-05-17 20:39:18 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2026-05-30 13:43:52 +0000
commit0fe73dcf7c3260260afd95c3d1cfe846feb1df7c (patch)
tree46b47774e18f6b45689dd4747fef3e751a213990
parent867b51452ea78ece0b312a387e63fdbc2a11056a (diff)
libc: Add <assert.h> C23 feature test macro
Signed-off-by: Faraz Vahedi <kfv@kfv.io> Reviewed by: fuz MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/2203
-rw-r--r--include/assert.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/assert.h b/include/assert.h
index 159efacfa45b..75d3e62e8932 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -88,8 +88,8 @@
#endif /* __BSD_VISIBLE */
#endif /* NDEBUG */
-#ifndef _ASSERT_H_
-#define _ASSERT_H_
+#ifndef __STDC_VERSION_ASSERT_H__
+#define __STDC_VERSION_ASSERT_H__ 202311L
/*
* Static assertions. In principle we could define static_assert for
@@ -112,4 +112,4 @@ __BEGIN_DECLS
void __assert(const char *, const char *, int, const char *) __dead2;
__END_DECLS
-#endif /* !_ASSERT_H_ */
+#endif /* !__STDC_VERSION_ASSERT_H__ */