mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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 <[email protected]> Pull Request: https://github.com/freebsd/freebsd-src/pull/2223 MFC after: 1 month Reviewed by: imp, fuz
This commit is contained in:
1 parent
48d20fd1cf
commit
694baf88c2
1 file changed
+4
@@ -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 */
|
||||
Reference in new issue
Block a user