12 #ifndef __STDC_WANT_LIB_EXT1__
13 #define __STDC_WANT_LIB_EXT1__ 1
17 #define _Float128 long double
18 #define _Float64x long double
19 #define _Float64 double
20 #define _Float32x double
21 #define _Float32 float
25 #include <sys/types.h>
28 #if defined HAVE_STDINT_H
30 #elif defined HAVE_INTTYPES_H
31 # include <inttypes.h>
35 /* solaris and NetBSD 1.3.x again */
36 #if (!defined(HAVE_STDINT_H)) && (!defined(HAVE_INTTYPES_H)) && (!defined(uint32_t))
37 # define uint32_t u_int32_t
45 # define SIZE_MAX SIZE_T_MAX
47 # define SIZE_MAX (~(size_t)0u)
52 # define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
56 #define UNUSED(x) ( (void)(x) )
59 #ifndef __has_attribute /* clang */
60 #define __has_attribute(x) 0
65 # ifdef __GNUC_PREREQ__
66 # define __GNUC_PREREQ __GNUC_PREREQ__
67 # elif defined __GNUC__ && defined __GNUC_MINOR__
68 # define __GNUC_PREREQ(maj, min) \
69 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
71 # define __GNUC_PREREQ(maj, min) 0
75 #define __GNUC_PREREQ(maj,min) 0
78 #ifndef __attribute_noinline__
79 #if __has_attribute(noinline) \
81 #define __attribute_noinline__ __attribute__((__noinline__))
83 #define __attribute_noinline__
87 #ifndef __attribute_cold__
88 #if __has_attribute(cold) \
90 #define __attribute_cold__ __attribute__((__cold__))
92 #define __attribute_cold__
96 #ifndef __attribute_hot__
97 #if __has_attribute(hot) \
99 #define __attribute_hot__ __attribute__((__hot__))
101 #define __attribute_hot__
105 #ifndef __attribute_noreturn__
106 #if __has_attribute(noreturn) \
107 || __GNUC_PREREQ(2,5)
108 #define __attribute_noreturn__ __attribute__((__noreturn__))
110 #define __attribute_noreturn__
114 #ifndef __attribute_fallthrough__
115 #if __has_attribute(fallthrough) \
116 || __GNUC_PREREQ(7,0)
117 #define __attribute_fallthrough__ __attribute__((__fallthrough__));
119 #define __attribute_fallthrough__ /* fall through */
123 #ifndef __attribute_format__
124 #if __has_attribute(format) \
125 || __GNUC_PREREQ(2,95) /*(maybe earlier gcc, too)*/
126 #define __attribute_format__(x) __attribute__((__format__ x))
128 #define __attribute_format__(x)