git: 13ba63a5f5b6 - stable/15 - libc: Suppress <stdalign.h> content for C23 and later
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Jul 2026 17:58:05 UTC
The branch stable/15 has been updated by fuz:
URL: https://cgit.FreeBSD.org/src/commit/?id=13ba63a5f5b699a8ba1de8eccb878d527e3d5e10
commit 13ba63a5f5b699a8ba1de8eccb878d527e3d5e10
Author: Faraz Vahedi <kfv@kfv.io>
AuthorDate: 2026-05-20 10:06:16 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-07-16 17:56:48 +0000
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
(cherry picked from commit 694baf88c2ae5957fdb24ed163993109987e1ef9)
---
include/stdalign.h | 4 ++++
1 file changed, 4 insertions(+)
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 */