From 0fe73dcf7c3260260afd95c3d1cfe846feb1df7c Mon Sep 17 00:00:00 2001 From: Faraz Vahedi Date: Mon, 18 May 2026 00:09:18 +0330 Subject: [PATCH] libc: Add C23 feature test macro Signed-off-by: Faraz Vahedi 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__ */