2 //===--------------------------- stddef.h ---------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #if defined(__need_ptrdiff_t) || defined(__need_size_t) || \
12 defined(__need_wchar_t) || defined(__need_NULL) || defined(__need_wint_t)
14 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
15 #pragma GCC system_header
18 #include_next <stddef.h>
20 #elif !defined(_LIBCPP_STDDEF_H)
21 #define _LIBCPP_STDDEF_H
28 offsetof(type,member-designator)
42 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
43 #pragma GCC system_header
46 #include_next <stddef.h>
55 // Re-use the compiler's <stddef.h> max_align_t where possible.
56 #if !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T)
57 typedef long double max_align_t
;
62 #endif // _LIBCPP_STDDEF_H