Fix getauxval error at qemu
[platform/upstream/glib.git] / glib / glibconfig.h.in
1 /* glibconfig.h
2  *
3  * This is a generated file.  Please modify 'glibconfig.h.in'
4  */
5
6 #ifndef __GLIBCONFIG_H__
7 #define __GLIBCONFIG_H__
8
9 #include <glib/gmacros.h>
10
11 #include <limits.h>
12 #include <float.h>
13 #mesondefine GLIB_HAVE_ALLOCA_H
14
15 #mesondefine GLIB_STATIC_COMPILATION
16 #mesondefine GOBJECT_STATIC_COMPILATION
17 #mesondefine GIO_STATIC_COMPILATION
18 #mesondefine GMODULE_STATIC_COMPILATION
19 #mesondefine G_INTL_STATIC_COMPILATION
20 #mesondefine FFI_STATIC_BUILD
21
22 /* Specifies that GLib's g_print*() functions wrap the
23  * system printf functions.  This is useful to know, for example,
24  * when using glibc's register_printf_function().
25  */
26 #mesondefine GLIB_USING_SYSTEM_PRINTF
27
28 G_BEGIN_DECLS
29
30 #define G_MINFLOAT      FLT_MIN
31 #define G_MAXFLOAT      FLT_MAX
32 #define G_MINDOUBLE     DBL_MIN
33 #define G_MAXDOUBLE     DBL_MAX
34 #define G_MINSHORT      SHRT_MIN
35 #define G_MAXSHORT      SHRT_MAX
36 #define G_MAXUSHORT     USHRT_MAX
37 #define G_MININT        INT_MIN
38 #define G_MAXINT        INT_MAX
39 #define G_MAXUINT       UINT_MAX
40 #define G_MINLONG       LONG_MIN
41 #define G_MAXLONG       LONG_MAX
42 #define G_MAXULONG      ULONG_MAX
43
44 typedef signed char gint8;
45 typedef unsigned char guint8;
46
47 typedef signed @gint16@ gint16;
48 typedef unsigned @gint16@ guint16;
49
50 #define G_GINT16_MODIFIER @gint16_modifier@
51 #define G_GINT16_FORMAT @gint16_format@
52 #define G_GUINT16_FORMAT @guint16_format@
53
54
55 typedef signed @gint32@ gint32;
56 typedef unsigned @gint32@ guint32;
57
58 #define G_GINT32_MODIFIER @gint32_modifier@
59 #define G_GINT32_FORMAT @gint32_format@
60 #define G_GUINT32_FORMAT @guint32_format@
61
62
63 #define G_HAVE_GINT64 1          /* deprecated, always true */
64
65 @glib_extension@typedef signed @gint64@ gint64;
66 @glib_extension@typedef unsigned @gint64@ guint64;
67
68 #define G_GINT64_CONSTANT(val)  @gint64_constant@
69 #define G_GUINT64_CONSTANT(val) @guint64_constant@
70
71 #define G_GINT64_MODIFIER @gint64_modifier@
72 #define G_GINT64_FORMAT @gint64_format@
73 #define G_GUINT64_FORMAT @guint64_format@
74
75
76 #define GLIB_SIZEOF_VOID_P @glib_void_p@
77 #define GLIB_SIZEOF_LONG   @glib_long@
78 #define GLIB_SIZEOF_SIZE_T @glib_size_t@
79 #define GLIB_SIZEOF_SSIZE_T @glib_ssize_t@
80
81 typedef signed @glib_size_type_define@ gssize;
82 typedef unsigned @glib_size_type_define@ gsize;
83 #define G_GSIZE_MODIFIER @gsize_modifier@
84 #define G_GSSIZE_MODIFIER @gssize_modifier@
85 #define G_GSIZE_FORMAT @gsize_format@
86 #define G_GSSIZE_FORMAT @gssize_format@
87
88 #define G_MAXSIZE       G_MAXU@glib_msize_type@
89 #define G_MINSSIZE      G_MIN@glib_msize_type@
90 #define G_MAXSSIZE      G_MAX@glib_msize_type@
91
92 typedef gint64 goffset;
93 #define G_MINOFFSET     G_MININT64
94 #define G_MAXOFFSET     G_MAXINT64
95
96 #define G_GOFFSET_MODIFIER      G_GINT64_MODIFIER
97 #define G_GOFFSET_FORMAT        G_GINT64_FORMAT
98 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
99
100 #define G_POLLFD_FORMAT @g_pollfd_format@
101
102 #define GPOINTER_TO_INT(p)      ((gint)  @glib_gpi_cast@ (p))
103 #define GPOINTER_TO_UINT(p)     ((guint) @glib_gpui_cast@ (p))
104
105 #define GINT_TO_POINTER(i)      ((gpointer) @glib_gpi_cast@ (i))
106 #define GUINT_TO_POINTER(u)     ((gpointer) @glib_gpui_cast@ (u))
107
108 typedef signed @glib_intptr_type_define@ gintptr;
109 typedef unsigned @glib_intptr_type_define@ guintptr;
110
111 #define G_GINTPTR_MODIFIER      @gintptr_modifier@
112 #define G_GINTPTR_FORMAT        @gintptr_format@
113 #define G_GUINTPTR_FORMAT       @guintptr_format@
114
115 #define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@
116 #define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
117 #define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@
118
119 @glib_os@
120
121 #define G_VA_COPY va_copy
122 @glib_vacopy@
123
124 #define G_HAVE_ISO_VARARGS 1
125
126 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
127  * is passed ISO vararg support is turned off, and there is no work
128  * around to turn it on, so we unconditionally turn it off.
129  */
130 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
131 #  undef G_HAVE_ISO_VARARGS
132 #endif
133
134 #mesondefine G_HAVE_GROWING_STACK
135
136 #ifndef _MSC_VER
137 # define G_HAVE_GNUC_VARARGS 1
138 #endif
139
140 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
141 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
142 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
143 #define G_GNUC_INTERNAL __hidden
144 #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
145 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
146 #else
147 #define G_GNUC_INTERNAL
148 #endif
149
150 #define G_THREADS_ENABLED
151 #define G_THREADS_IMPL_@g_threads_impl_def@
152
153 #mesondefine G_ATOMIC_LOCK_FREE
154
155 #define GINT16_TO_@g_bs_native@(val)    ((gint16) (val))
156 #define GUINT16_TO_@g_bs_native@(val)   ((guint16) (val))
157 #define GINT16_TO_@g_bs_alien@(val)     ((gint16) GUINT16_SWAP_LE_BE (val))
158 #define GUINT16_TO_@g_bs_alien@(val)    (GUINT16_SWAP_LE_BE (val))
159
160 #define GINT32_TO_@g_bs_native@(val)    ((gint32) (val))
161 #define GUINT32_TO_@g_bs_native@(val)   ((guint32) (val))
162 #define GINT32_TO_@g_bs_alien@(val)     ((gint32) GUINT32_SWAP_LE_BE (val))
163 #define GUINT32_TO_@g_bs_alien@(val)    (GUINT32_SWAP_LE_BE (val))
164
165 #define GINT64_TO_@g_bs_native@(val)    ((gint64) (val))
166 #define GUINT64_TO_@g_bs_native@(val)   ((guint64) (val))
167 #define GINT64_TO_@g_bs_alien@(val)     ((gint64) GUINT64_SWAP_LE_BE (val))
168 #define GUINT64_TO_@g_bs_alien@(val)    (GUINT64_SWAP_LE_BE (val))
169
170 #define GLONG_TO_LE(val)        ((glong) GINT@glongbits@_TO_LE (val))
171 #define GULONG_TO_LE(val)       ((gulong) GUINT@glongbits@_TO_LE (val))
172 #define GLONG_TO_BE(val)        ((glong) GINT@glongbits@_TO_BE (val))
173 #define GULONG_TO_BE(val)       ((gulong) GUINT@glongbits@_TO_BE (val))
174 #define GINT_TO_LE(val)         ((gint) GINT@gintbits@_TO_LE (val))
175 #define GUINT_TO_LE(val)        ((guint) GUINT@gintbits@_TO_LE (val))
176 #define GINT_TO_BE(val)         ((gint) GINT@gintbits@_TO_BE (val))
177 #define GUINT_TO_BE(val)        ((guint) GUINT@gintbits@_TO_BE (val))
178 #define GSIZE_TO_LE(val)        ((gsize) GUINT@gsizebits@_TO_LE (val))
179 #define GSSIZE_TO_LE(val)       ((gssize) GINT@gsizebits@_TO_LE (val))
180 #define GSIZE_TO_BE(val)        ((gsize) GUINT@gsizebits@_TO_BE (val))
181 #define GSSIZE_TO_BE(val)       ((gssize) GINT@gsizebits@_TO_BE (val))
182 #define G_BYTE_ORDER @g_byte_order@
183
184 #define GLIB_SYSDEF_POLLIN =@g_pollin@
185 #define GLIB_SYSDEF_POLLOUT =@g_pollout@
186 #define GLIB_SYSDEF_POLLPRI =@g_pollpri@
187 #define GLIB_SYSDEF_POLLHUP =@g_pollhup@
188 #define GLIB_SYSDEF_POLLERR =@g_pollerr@
189 #define GLIB_SYSDEF_POLLNVAL =@g_pollnval@
190
191 /* No way to disable deprecation warnings for macros, so only emit deprecation
192  * warnings on platforms where usage of this macro is broken */
193 #if defined(__APPLE__) || defined(_MSC_VER) || defined(__CYGWIN__)
194 #define G_MODULE_SUFFIX "@g_module_suffix@" GLIB_DEPRECATED_MACRO_IN_2_76
195 #else
196 #define G_MODULE_SUFFIX "@g_module_suffix@"
197 #endif
198
199 typedef @g_pid_type@ GPid;
200 #define G_PID_FORMAT @g_pid_format@
201
202 #define GLIB_SYSDEF_AF_UNIX @g_af_unix@
203 #define GLIB_SYSDEF_AF_INET @g_af_inet@
204 #define GLIB_SYSDEF_AF_INET6 @g_af_inet6@
205
206 #define GLIB_SYSDEF_MSG_OOB @g_msg_oob@
207 #define GLIB_SYSDEF_MSG_PEEK @g_msg_peek@
208 #define GLIB_SYSDEF_MSG_DONTROUTE @g_msg_dontroute@
209
210 #define G_DIR_SEPARATOR '@g_dir_separator@'
211 #define G_DIR_SEPARATOR_S "@g_dir_separator@"
212 #define G_SEARCHPATH_SEPARATOR '@g_searchpath_separator@'
213 #define G_SEARCHPATH_SEPARATOR_S "@g_searchpath_separator@"
214
215 #mesondefine G_HAVE_FREE_SIZED
216
217 G_END_DECLS
218
219 #endif /* __GLIBCONFIG_H__ */