git: 0fe73dcf7c32 - main - libc: Add <assert.h> C23 feature test macro

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sat, 30 May 2026 13:44:29 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/src/commit/?id=0fe73dcf7c3260260afd95c3d1cfe846feb1df7c

commit 0fe73dcf7c3260260afd95c3d1cfe846feb1df7c
Author:     Faraz Vahedi <kfv@kfv.io>
AuthorDate: 2026-05-17 20:39:18 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-05-30 13:43:52 +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
---
 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__ */