Reactos
1//
2// stdalign.h
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// The C Standard Library <stdalign.h> header.
7//
8#pragma once
9#ifndef _INC_STDALIGN // include guard for 3rd party interop
10#define _INC_STDALIGN
11
12#include <corecrt.h>
13
14#pragma warning(push)
15#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
16_UCRT_DISABLE_CLANG_WARNINGS
17_CRT_BEGIN_C_HEADER
18
19#if _CRT_HAS_C11
20
21#define alignas _Alignas
22#define alignof _Alignof
23#define __alignas_is_defined 1
24#define __alignof_is_defined 1
25
26#endif // _CRT_HAS_C11
27
28_CRT_END_C_HEADER
29_UCRT_RESTORE_CLANG_WARNINGS
30#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
31#endif // _INC_STDALIGN