git: 2126cab4a454 - stable/15 - libc: Add <assert.h> C23 feature test macro
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Jun 2026 10:11:20 UTC
The branch stable/15 has been updated by fuz:
URL: https://cgit.FreeBSD.org/src/commit/?id=2126cab4a454655042858bf4b382e426e6dc5081
commit 2126cab4a454655042858bf4b382e426e6dc5081
Author: Faraz Vahedi <kfv@kfv.io>
AuthorDate: 2026-05-17 20:39:18 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-06-29 08:23:02 +0000
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
(cherry picked from commit 0fe73dcf7c3260260afd95c3d1cfe846feb1df7c)
---
include/assert.h | 6 +++---
1 file 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__ */