aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaraz Vahedi <kfv@kfv.io>2026-05-20 10:06:16 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2026-06-10 16:14:32 +0000
commit694baf88c2ae5957fdb24ed163993109987e1ef9 (patch)
treee752d90f1fae786584a9412d6fd7bb22271d97ab
parent48d20fd1cf90179e778c6155900cbed2be140273 (diff)
libc: Suppress <stdalign.h> content for C23 and later
C23 deprecates <stdalign.h> and specifies that the header shall provide no content (ยง7.15.1). Signed-off-by: Faraz Vahedi <kfv@kfv.io> Pull Request: https://github.com/freebsd/freebsd-src/pull/2223 MFC after: 1 month Reviewed by: imp, fuz
-rw-r--r--include/stdalign.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stdalign.h b/include/stdalign.h
index 00ae5677f449..1b439565f588 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 */