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