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/* 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(). 18 */ 19#mesondefine GLIB_USING_SYSTEM_PRINTF 20 21#mesondefine GLIB_STATIC_COMPILATION 22#mesondefine GOBJECT_STATIC_COMPILATION 23 24G_BEGIN_DECLS 25 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 39 40typedef signed char gint8; 41typedef unsigned char guint8; 42 43typedef signed @gint16@ gint16; 44typedef unsigned @gint16@ guint16; 45 46#define G_GINT16_MODIFIER @gint16_modifier@ 47#define G_GINT16_FORMAT @gint16_format@ 48#define G_GUINT16_FORMAT @guint16_format@ 49 50 51typedef signed @gint32@ gint32; 52typedef unsigned @gint32@ guint32; 53 54#define G_GINT32_MODIFIER @gint32_modifier@ 55#define G_GINT32_FORMAT @gint32_format@ 56#define G_GUINT32_FORMAT @guint32_format@ 57 58 59#define G_HAVE_GINT64 1 /* deprecated, always true */ 60 61@glib_extension@typedef signed @gint64@ gint64; 62@glib_extension@typedef unsigned @gint64@ guint64; 63 64#define G_GINT64_CONSTANT(val) @gint64_constant@ 65#define G_GUINT64_CONSTANT(val) @guint64_constant@ 66 67#define G_GINT64_MODIFIER @gint64_modifier@ 68#define G_GINT64_FORMAT @gint64_format@ 69#define G_GUINT64_FORMAT @guint64_format@ 70 71 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@ 76 77typedef signed @glib_size_type_define@ gssize; 78typedef 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@ 83 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@ 87 88typedef gint64 goffset; 89#define G_MINOFFSET G_MININT64 90#define G_MAXOFFSET G_MAXINT64 91 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) 95 96#define G_POLLFD_FORMAT @g_pollfd_format@ 97 98#define GPOINTER_TO_INT(p) ((gint) @glib_gpi_cast@ (p)) 99#define GPOINTER_TO_UINT(p) ((guint) @glib_gpui_cast@ (p)) 100 101#define GINT_TO_POINTER(i) ((gpointer) @glib_gpi_cast@ (i)) 102#define GUINT_TO_POINTER(u) ((gpointer) @glib_gpui_cast@ (u)) 103 104typedef signed @glib_intptr_type_define@ gintptr; 105typedef unsigned @glib_intptr_type_define@ guintptr; 106 107#define G_GINTPTR_MODIFIER @gintptr_modifier@ 108#define G_GINTPTR_FORMAT @gintptr_format@ 109#define G_GUINTPTR_FORMAT @guintptr_format@ 110 111#define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@ 112#define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@ 113#define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@ 114 115@glib_os@ 116 117@glib_vacopy@ 118 119@g_have_iso_c_varargs@ 120@g_have_iso_cxx_varargs@ 121 122/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi 123 * is passed ISO vararg support is turned off, and there is no work 124 * around to turn it on, so we unconditionally turn it off. 125 */ 126#if __GNUC__ == 2 && __GNUC_MINOR__ == 95 127# undef G_HAVE_ISO_VARARGS 128#endif 129 130#mesondefine G_HAVE_GROWING_STACK 131#mesondefine G_HAVE_GNUC_VISIBILITY 132 133#ifndef _MSC_VER 134# define G_HAVE_GNUC_VARARGS 1 135#endif 136 137#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) 138#define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) 139#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) 140#define G_GNUC_INTERNAL __hidden 141#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY) 142#define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) 143#else 144#define G_GNUC_INTERNAL 145#endif 146 147#define G_THREADS_ENABLED 148#define G_THREADS_IMPL_@g_threads_impl_def@ 149 150#mesondefine G_ATOMIC_LOCK_FREE 151 152#define GINT16_TO_@g_bs_native@(val) ((gint16) (val)) 153#define GUINT16_TO_@g_bs_native@(val) ((guint16) (val)) 154#define GINT16_TO_@g_bs_alien@(val) ((gint16) GUINT16_SWAP_LE_BE (val)) 155#define GUINT16_TO_@g_bs_alien@(val) (GUINT16_SWAP_LE_BE (val)) 156 157#define GINT32_TO_@g_bs_native@(val) ((gint32) (val)) 158#define GUINT32_TO_@g_bs_native@(val) ((guint32) (val)) 159#define GINT32_TO_@g_bs_alien@(val) ((gint32) GUINT32_SWAP_LE_BE (val)) 160#define GUINT32_TO_@g_bs_alien@(val) (GUINT32_SWAP_LE_BE (val)) 161 162#define GINT64_TO_@g_bs_native@(val) ((gint64) (val)) 163#define GUINT64_TO_@g_bs_native@(val) ((guint64) (val)) 164#define GINT64_TO_@g_bs_alien@(val) ((gint64) GUINT64_SWAP_LE_BE (val)) 165#define GUINT64_TO_@g_bs_alien@(val) (GUINT64_SWAP_LE_BE (val)) 166 167#define GLONG_TO_LE(val) ((glong) GINT@glongbits@_TO_LE (val)) 168#define GULONG_TO_LE(val) ((gulong) GUINT@glongbits@_TO_LE (val)) 169#define GLONG_TO_BE(val) ((glong) GINT@glongbits@_TO_BE (val)) 170#define GULONG_TO_BE(val) ((gulong) GUINT@glongbits@_TO_BE (val)) 171#define GINT_TO_LE(val) ((gint) GINT@gintbits@_TO_LE (val)) 172#define GUINT_TO_LE(val) ((guint) GUINT@gintbits@_TO_LE (val)) 173#define GINT_TO_BE(val) ((gint) GINT@gintbits@_TO_BE (val)) 174#define GUINT_TO_BE(val) ((guint) GUINT@gintbits@_TO_BE (val)) 175#define GSIZE_TO_LE(val) ((gsize) GUINT@gsizebits@_TO_LE (val)) 176#define GSSIZE_TO_LE(val) ((gssize) GINT@gsizebits@_TO_LE (val)) 177#define GSIZE_TO_BE(val) ((gsize) GUINT@gsizebits@_TO_BE (val)) 178#define GSSIZE_TO_BE(val) ((gssize) GINT@gsizebits@_TO_BE (val)) 179#define G_BYTE_ORDER @g_byte_order@ 180 181#define GLIB_SYSDEF_POLLIN =@g_pollin@ 182#define GLIB_SYSDEF_POLLOUT =@g_pollout@ 183#define GLIB_SYSDEF_POLLPRI =@g_pollpri@ 184#define GLIB_SYSDEF_POLLHUP =@g_pollhup@ 185#define GLIB_SYSDEF_POLLERR =@g_pollerr@ 186#define GLIB_SYSDEF_POLLNVAL =@g_pollnval@ 187 188#define G_MODULE_SUFFIX "@g_module_suffix@" 189 190typedef @g_pid_type@ GPid; 191#define G_PID_FORMAT @g_pid_format@ 192 193#define GLIB_SYSDEF_AF_UNIX @g_af_unix@ 194#define GLIB_SYSDEF_AF_INET @g_af_inet@ 195#define GLIB_SYSDEF_AF_INET6 @g_af_inet6@ 196 197#define GLIB_SYSDEF_MSG_OOB @g_msg_oob@ 198#define GLIB_SYSDEF_MSG_PEEK @g_msg_peek@ 199#define GLIB_SYSDEF_MSG_DONTROUTE @g_msg_dontroute@ 200 201#define G_DIR_SEPARATOR '@g_dir_separator@' 202#define G_DIR_SEPARATOR_S "@g_dir_separator@" 203#define G_SEARCHPATH_SEPARATOR '@g_searchpath_separator@' 204#define G_SEARCHPATH_SEPARATOR_S "@g_searchpath_separator@" 205 206G_END_DECLS 207 208#endif /* __GLIBCONFIG_H__ */ 209