mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 16:45:27 +00:00
1861036f3b
release/17.x branch, commit 8f4dd44097c9ae25dd203d5ac87f3b48f854bba8
27 lines
911 B
C
Vendored
27 lines
911 B
C
Vendored
/*===---- stdalign.h - Standard header for alignment ------------------------===
|
|
*
|
|
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
* See https://llvm.org/LICENSE.txt for license information.
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
*
|
|
*===-----------------------------------------------------------------------===
|
|
*/
|
|
|
|
#ifndef __STDALIGN_H
|
|
#define __STDALIGN_H
|
|
|
|
/* FIXME: This is using the placeholder dates Clang produces for these macros
|
|
in C2x mode; switch to the correct values once they've been published. */
|
|
#if defined(__cplusplus) || \
|
|
(defined(__STDC_VERSION__) && __STDC_VERSION__ < 202000L)
|
|
#ifndef __cplusplus
|
|
#define alignas _Alignas
|
|
#define alignof _Alignof
|
|
#endif
|
|
|
|
#define __alignas_is_defined 1
|
|
#define __alignof_is_defined 1
|
|
#endif /* __STDC_VERSION__ */
|
|
|
|
#endif /* __STDALIGN_H */
|