From 694baf88c2ae5957fdb24ed163993109987e1ef9 Mon Sep 17 00:00:00 2001 From: Faraz Vahedi Date: Wed, 20 May 2026 13:36:16 +0330 Subject: [PATCH] libc: Suppress content for C23 and later MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit C23 deprecates and specifies that the header shall provide no content (ยง7.15.1). Signed-off-by: Faraz Vahedi Pull Request: https://github.com/freebsd/freebsd-src/pull/2223 MFC after: 1 month Reviewed by: imp, fuz --- include/stdalign.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/stdalign.h b/include/stdalign.h index 00ae5677f44..1b439565f58 100644 --- a/include/stdalign.h +++ b/include/stdalign.h @@ -26,6 +26,8 @@ * SUCH DAMAGE. */ +#if __STDC_VERSION__ < 202311L + #ifndef __alignas_is_defined #define __alignas_is_defined 1 @@ -45,3 +47,5 @@ #endif #endif /* !__alignof_is_defined */ + +#endif /* __STDC_VERSION__ < 202311L */