[docs] Fix build-docs.sh
[llvm-project.git] / clang / lib / Headers / __stddef_max_align_t.h
blobe3b439285d0fd085d80b5c245171945fb78a87ed
1 /*===---- __stddef_max_align_t.h - Definition of max_align_t for modules ---===
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
7 *===-----------------------------------------------------------------------===
8 */
10 #ifndef __CLANG_MAX_ALIGN_T_DEFINED
11 #define __CLANG_MAX_ALIGN_T_DEFINED
13 #if defined(_MSC_VER)
14 typedef double max_align_t;
15 #elif defined(__APPLE__)
16 typedef long double max_align_t;
17 #else
18 // Define 'max_align_t' to match the GCC definition.
19 typedef struct {
20 long long __clang_max_align_nonce1
21 __attribute__((__aligned__(__alignof__(long long))));
22 long double __clang_max_align_nonce2
23 __attribute__((__aligned__(__alignof__(long double))));
24 } max_align_t;
25 #endif
27 #endif