clang 19.0.0git
stdalign.h
Go to the documentation of this file.
1/*===---- stdalign.h - Standard header for alignment ------------------------===
2 *
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 *
7 *===-----------------------------------------------------------------------===
8 */
9
10#ifndef __STDALIGN_H
11#define __STDALIGN_H
12
13#if defined(__MVS__) && __has_include_next(<stdalign.h>)
14#include_next <stdalign.h>
15#else
16
17#if defined(__cplusplus) || \
18 (defined(__STDC_VERSION__) && __STDC_VERSION__ < 202311L)
19#ifndef __cplusplus
20#define alignas _Alignas
21#define alignof _Alignof
22#endif
23
24#define __alignas_is_defined 1
25#define __alignof_is_defined 1
26#endif /* __STDC_VERSION__ */
27
28#endif /* __MVS__ */
29#endif /* __STDALIGN_H */