| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
#if __GNUC__ >= 3 |
| 26 |
@PRAGMA_SYSTEM_HEADER@ |
| 27 |
#endif |
| 28 |
@PRAGMA_COLUMNS@ |
| 29 |
|
| 30 |
#if (defined __need_wchar_t || defined __need_size_t \ |
| 31 |
|| defined __need_ptrdiff_t || defined __need_NULL \ |
| 32 |
|| defined __need_wint_t) \ |
| 33 |
|
| 34 |
|
| 35 |
\ |
| 36 |
&& !@STDDEF_NOT_IDEMPOTENT@ |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
# if !(defined _@GUARD_PREFIX@_STDDEF_H && defined _@GUARD_PREFIX@_STDDEF_WINT_T) |
| 49 |
# ifdef __need_wint_t |
| 50 |
# define _@GUARD_PREFIX@_STDDEF_WINT_T |
| 51 |
# endif |
| 52 |
# @INCLUDE_NEXT@ @NEXT_STDDEF_H@ |
| 53 |
|
| 54 |
|
| 55 |
# undef __need_wchar_t |
| 56 |
# undef __need_size_t |
| 57 |
# undef __need_ptrdiff_t |
| 58 |
# undef __need_NULL |
| 59 |
# undef __need_wint_t |
| 60 |
# endif |
| 61 |
|
| 62 |
#else |
| 63 |
|
| 64 |
# undef __need_wchar_t |
| 65 |
# undef __need_size_t |
| 66 |
# undef __need_ptrdiff_t |
| 67 |
# undef __need_NULL |
| 68 |
# undef __need_wint_t |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
# ifndef _@GUARD_PREFIX@_STDDEF_H |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
# if defined _AIX && defined __LP64__ && !@HAVE_MAX_ALIGN_T@ |
| 77 |
# if !GNULIB_defined_max_align_t |
| 78 |
# ifdef _MAX_ALIGN_T |
| 79 |
|
| 80 |
typedef long rpl_max_align_t; |
| 81 |
# define max_align_t rpl_max_align_t |
| 82 |
# else |
| 83 |
|
| 84 |
typedef long max_align_t; |
| 85 |
# define _MAX_ALIGN_T |
| 86 |
# endif |
| 87 |
# define __CLANG_MAX_ALIGN_T_DEFINED |
| 88 |
# define GNULIB_defined_max_align_t 1 |
| 89 |
# endif |
| 90 |
# endif |
| 91 |
|
| 92 |
# if !defined _GCC_NULLPTR_T && !@NULLPTR_T_NEEDS_STDDEF@ |
| 93 |
|
| 94 |
|
| 95 |
# define _GCC_NULLPTR_T |
| 96 |
# endif |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
# @INCLUDE_NEXT@ @NEXT_STDDEF_H@ |
| 101 |
|
| 102 |
|
| 103 |
# if (@REPLACE_NULL@ \ |
| 104 |
&& (!defined _@GUARD_PREFIX@_STDDEF_H || defined _@GUARD_PREFIX@_STDDEF_WINT_T)) |
| 105 |
# undef NULL |
| 106 |
# ifdef __cplusplus |
| 107 |
|
| 108 |
|
| 109 |
# if __GNUG__ >= 3 |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
# define NULL __null |
| 114 |
# else |
| 115 |
# define NULL 0L |
| 116 |
# endif |
| 117 |
# else |
| 118 |
# define NULL ((void *) 0) |
| 119 |
# endif |
| 120 |
# endif |
| 121 |
|
| 122 |
# ifndef _@GUARD_PREFIX@_STDDEF_H |
| 123 |
# define _@GUARD_PREFIX@_STDDEF_H |
| 124 |
|
| 125 |
|
| 126 |
#if !_GL_CONFIG_H_INCLUDED |
| 127 |
#error "Please include config.h first." |
| 128 |
#endif |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
#ifndef _GL_ATTRIBUTE_NOTHROW |
| 133 |
# if defined __cplusplus |
| 134 |
# if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major__ >= 4 |
| 135 |
# if __cplusplus >= 201103L |
| 136 |
# define _GL_ATTRIBUTE_NOTHROW noexcept (true) |
| 137 |
# else |
| 138 |
# define _GL_ATTRIBUTE_NOTHROW throw () |
| 139 |
# endif |
| 140 |
# else |
| 141 |
# define _GL_ATTRIBUTE_NOTHROW |
| 142 |
# endif |
| 143 |
# else |
| 144 |
# if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 3) || defined __clang__ |
| 145 |
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__)) |
| 146 |
# else |
| 147 |
# define _GL_ATTRIBUTE_NOTHROW |
| 148 |
# endif |
| 149 |
# endif |
| 150 |
#endif |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
#if (defined _MSC_VER || (defined __KLIBC__ && !defined __LIBCN__)) \ |
| 160 |
&& defined __cplusplus |
| 161 |
# include <cstddef> |
| 162 |
#else |
| 163 |
# if ! (@HAVE_MAX_ALIGN_T@ || (defined _GCC_MAX_ALIGN_T && !defined __clang__)) |
| 164 |
# if !GNULIB_defined_max_align_t |
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
# if defined __GNUC__ || (__clang_major__ >= 4) |
| 171 |
# define _GL_STDDEF_ALIGNAS(type) \ |
| 172 |
__attribute__ ((__aligned__ (__alignof__ (type)))) |
| 173 |
# else |
| 174 |
# define _GL_STDDEF_ALIGNAS(type) |
| 175 |
# endif |
| 176 |
typedef union |
| 177 |
{ |
| 178 |
char *__p _GL_STDDEF_ALIGNAS (char *); |
| 179 |
double __d _GL_STDDEF_ALIGNAS (double); |
| 180 |
long double __ld _GL_STDDEF_ALIGNAS (long double); |
| 181 |
long int __i _GL_STDDEF_ALIGNAS (long int); |
| 182 |
} rpl_max_align_t; |
| 183 |
# define max_align_t rpl_max_align_t |
| 184 |
# define __CLANG_MAX_ALIGN_T_DEFINED |
| 185 |
# define GNULIB_defined_max_align_t 1 |
| 186 |
# endif |
| 187 |
# endif |
| 188 |
#endif |
| 189 |
|
| 190 |
/ |
| 191 |
#ifndef unreachable |
| 192 |
|
| 193 |
|
| 194 |
# ifndef _GL_HAS_BUILTIN_UNREACHABLE |
| 195 |
# if defined __clang_major__ && __clang_major__ < 5 |
| 196 |
# define _GL_HAS_BUILTIN_UNREACHABLE 0 |
| 197 |
# elif 4 < __GNUC__ + (5 <= __GNUC_MINOR__) && !defined __clang__ |
| 198 |
# define _GL_HAS_BUILTIN_UNREACHABLE 1 |
| 199 |
# elif defined __has_builtin |
| 200 |
# define _GL_HAS_BUILTIN_UNREACHABLE __has_builtin (__builtin_unreachable) |
| 201 |
# else |
| 202 |
# define _GL_HAS_BUILTIN_UNREACHABLE 0 |
| 203 |
# endif |
| 204 |
# endif |
| 205 |
|
| 206 |
# if _GL_HAS_BUILTIN_UNREACHABLE |
| 207 |
# define unreachable() __builtin_unreachable () |
| 208 |
# elif 1200 <= _MSC_VER |
| 209 |
# define unreachable() __assume (0) |
| 210 |
# else |
| 211 |
|
| 212 |
extern |
| 213 |
# if defined __cplusplus |
| 214 |
"C" |
| 215 |
# endif |
| 216 |
_Noreturn |
| 217 |
void abort (void) |
| 218 |
# if defined __cplusplus && (__GLIBC__ >= 2) |
| 219 |
_GL_ATTRIBUTE_NOTHROW |
| 220 |
# endif |
| 221 |
; |
| 222 |
# define unreachable() abort () |
| 223 |
# endif |
| 224 |
|
| 225 |
#endif |
| 226 |
|
| 227 |
# endif |
| 228 |
# endif |
| 229 |
#endif |