btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / libs / libc++ / stddef.h
blob8841bbea29786c985cb60bb8161b5c1a0a6010b5
1 // -*- C++ -*-
2 //===--------------------------- stddef.h ---------------------------------===//
3 //
4 // The LLVM Compiler Infrastructure
5 //
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
8 //
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
16 #endif
18 #include_next <stddef.h>
20 #elif !defined(_LIBCPP_STDDEF_H)
21 #define _LIBCPP_STDDEF_H
24 stddef.h synopsis
26 Macros:
28 offsetof(type,member-designator)
29 NULL
31 Types:
33 ptrdiff_t
34 size_t
35 max_align_t
36 nullptr_t
40 #include <__config>
42 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
43 #pragma GCC system_header
44 #endif
46 #include_next <stddef.h>
48 #ifdef __cplusplus
50 extern "C++" {
51 #include <__nullptr>
52 using std::nullptr_t;
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;
58 #endif
60 #endif
62 #endif // _LIBCPP_STDDEF_H