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 #define 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 #undef GLIB_USING_SYSTEM_PRINTF 20 21 /* #undef GLIB_STATIC_COMPILATION */ 22 /* #undef GOBJECT_STATIC_COMPILATION */ 23 24 G_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 40 typedef signed char gint8; 41 typedef unsigned char guint8; 42 43 typedef signed short gint16; 44 typedef unsigned short guint16; 45 46 #define G_GINT16_MODIFIER "h" 47 #define G_GINT16_FORMAT "hi" 48 #define G_GUINT16_FORMAT "hu" 49 50 51 typedef signed int gint32; 52 typedef unsigned int guint32; 53 54 #define G_GINT32_MODIFIER "" 55 #define G_GINT32_FORMAT "i" 56 #define G_GUINT32_FORMAT "u" 57 58 59 #define G_HAVE_GINT64 1 /* deprecated, always true */ 60 61 #ifdef __LP64__ 62 63 typedef signed long gint64; 64 typedef unsigned long guint64; 65 66 #define G_GINT64_CONSTANT(val) (val##L) 67 #define G_GUINT64_CONSTANT(val) (val##UL) 68 69 #define G_GINT64_MODIFIER "l" 70 #define G_GINT64_FORMAT "li" 71 #define G_GUINT64_FORMAT "lu" 72 73 74 #define GLIB_SIZEOF_VOID_P 8 75 #define GLIB_SIZEOF_LONG 8 76 #define GLIB_SIZEOF_SIZE_T 8 77 #define GLIB_SIZEOF_SSIZE_T 8 78 79 typedef signed long gssize; 80 typedef unsigned long gsize; 81 #define G_GSIZE_MODIFIER "l" 82 #define G_GSSIZE_MODIFIER "l" 83 #define G_GSIZE_FORMAT "lu" 84 #define G_GSSIZE_FORMAT "li" 85 86 #define G_MAXSIZE G_MAXULONG 87 #define G_MINSSIZE G_MINLONG 88 #define G_MAXSSIZE G_MAXLONG 89 90 typedef gint64 goffset; 91 #define G_MINOFFSET G_MININT64 92 #define G_MAXOFFSET G_MAXINT64 93 94 #define G_GOFFSET_MODIFIER G_GINT64_MODIFIER 95 #define G_GOFFSET_FORMAT G_GINT64_FORMAT 96 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val) 97 98 #define G_POLLFD_FORMAT "%d" 99 100 #define GPOINTER_TO_INT(p) ((gint) (glong) (p)) 101 #define GPOINTER_TO_UINT(p) ((guint) (gulong) (p)) 102 103 #define GINT_TO_POINTER(i) ((gpointer) (glong) (i)) 104 #define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u)) 105 106 typedef signed long gintptr; 107 typedef unsigned long guintptr; 108 109 #define G_GINTPTR_MODIFIER "l" 110 #define G_GINTPTR_FORMAT "li" 111 #define G_GUINTPTR_FORMAT "lu" 112 113 #else 114 115 G_GNUC_EXTENSION typedef signed long long gint64; 116 G_GNUC_EXTENSION typedef unsigned long long guint64; 117 118 #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL)) 119 #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL)) 120 121 #define G_GINT64_MODIFIER "ll" 122 #define G_GINT64_FORMAT "lli" 123 #define G_GUINT64_FORMAT "llu" 124 125 126 #define GLIB_SIZEOF_VOID_P 4 127 #define GLIB_SIZEOF_LONG 4 128 #define GLIB_SIZEOF_SIZE_T 4 129 #define GLIB_SIZEOF_SSIZE_T 4 130 131 typedef signed int gssize; 132 typedef unsigned int gsize; 133 #define G_GSIZE_MODIFIER "" 134 #define G_GSSIZE_MODIFIER "" 135 #define G_GSIZE_FORMAT "u" 136 #define G_GSSIZE_FORMAT "i" 137 138 #define G_MAXSIZE G_MAXUINT 139 #define G_MINSSIZE G_MININT 140 #define G_MAXSSIZE G_MAXINT 141 142 typedef gint64 goffset; 143 #define G_MINOFFSET G_MININT64 144 #define G_MAXOFFSET G_MAXINT64 145 146 #define G_GOFFSET_MODIFIER G_GINT64_MODIFIER 147 #define G_GOFFSET_FORMAT G_GINT64_FORMAT 148 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val) 149 150 #define G_POLLFD_FORMAT "%d" 151 152 #define GPOINTER_TO_INT(p) ((gint) (gint) (p)) 153 #define GPOINTER_TO_UINT(p) ((guint) (guint) (p)) 154 155 #define GINT_TO_POINTER(i) ((gpointer) (gint) (i)) 156 #define GUINT_TO_POINTER(u) ((gpointer) (guint) (u)) 157 158 typedef signed int gintptr; 159 typedef unsigned int guintptr; 160 161 #define G_GINTPTR_MODIFIER "" 162 #define G_GINTPTR_FORMAT "i" 163 #define G_GUINTPTR_FORMAT "u" 164 #endif 165 166 167 #define GLIB_MAJOR_VERSION 2 168 #define GLIB_MINOR_VERSION 68 169 #define GLIB_MICRO_VERSION 1 170 171 #define G_OS_UNIX 172 173 #define G_VA_COPY va_copy 174 #define G_VA_COPY_AS_ARRAY 1 175 176 177 #ifndef __cplusplus 178 # define G_HAVE_ISO_VARARGS 1 179 #endif 180 181 #ifdef __cplusplus 182 # define G_HAVE_ISO_VARARGS 1 183 #endif 184 185 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi 186 * is passed ISO vararg support is turned off, and there is no work 187 * around to turn it on, so we unconditionally turn it off. 188 */ 189 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95 190 # undef G_HAVE_ISO_VARARGS 191 #endif 192 193 #define G_HAVE_GROWING_STACK 0 194 #define G_HAVE_GNUC_VISIBILITY 1 195 196 #ifndef _MSC_VER 197 # define G_HAVE_GNUC_VARARGS 1 198 #endif 199 200 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) 201 #define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) 202 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) 203 #define G_GNUC_INTERNAL __hidden 204 #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY) 205 #define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) 206 #else 207 #define G_GNUC_INTERNAL 208 #endif 209 210 #define G_THREADS_ENABLED 211 #define G_THREADS_IMPL_POSIX 212 213 #define G_ATOMIC_LOCK_FREE 214 215 #define GINT16_TO_LE(val) ((gint16) (val)) 216 #define GUINT16_TO_LE(val) ((guint16) (val)) 217 #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val)) 218 #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val)) 219 220 #define GINT32_TO_LE(val) ((gint32) (val)) 221 #define GUINT32_TO_LE(val) ((guint32) (val)) 222 #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val)) 223 #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val)) 224 225 #define GINT64_TO_LE(val) ((gint64) (val)) 226 #define GUINT64_TO_LE(val) ((guint64) (val)) 227 #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val)) 228 #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val)) 229 230 #ifdef __LP64__ 231 232 #define GLONG_TO_LE(val) ((glong) GINT64_TO_LE (val)) 233 #define GULONG_TO_LE(val) ((gulong) GUINT64_TO_LE (val)) 234 #define GLONG_TO_BE(val) ((glong) GINT64_TO_BE (val)) 235 #define GULONG_TO_BE(val) ((gulong) GUINT64_TO_BE (val)) 236 #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val)) 237 #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val)) 238 #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val)) 239 #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val)) 240 #define GSIZE_TO_LE(val) ((gsize) GUINT64_TO_LE (val)) 241 #define GSSIZE_TO_LE(val) ((gssize) GINT64_TO_LE (val)) 242 #define GSIZE_TO_BE(val) ((gsize) GUINT64_TO_BE (val)) 243 #define GSSIZE_TO_BE(val) ((gssize) GINT64_TO_BE (val)) 244 #define G_BYTE_ORDER G_LITTLE_ENDIAN 245 246 #else 247 248 #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val)) 249 #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val)) 250 #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val)) 251 #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val)) 252 #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val)) 253 #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val)) 254 #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val)) 255 #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val)) 256 #define GSIZE_TO_LE(val) ((gsize) GUINT32_TO_LE (val)) 257 #define GSSIZE_TO_LE(val) ((gssize) GINT32_TO_LE (val)) 258 #define GSIZE_TO_BE(val) ((gsize) GUINT32_TO_BE (val)) 259 #define GSSIZE_TO_BE(val) ((gssize) GINT32_TO_BE (val)) 260 #define G_BYTE_ORDER G_LITTLE_ENDIAN 261 262 #endif 263 264 265 #define GLIB_SYSDEF_POLLIN =1 266 #define GLIB_SYSDEF_POLLOUT =4 267 #define GLIB_SYSDEF_POLLPRI =2 268 #define GLIB_SYSDEF_POLLHUP =16 269 #define GLIB_SYSDEF_POLLERR =8 270 #define GLIB_SYSDEF_POLLNVAL =32 271 272 #define G_MODULE_SUFFIX "so" 273 274 typedef int GPid; 275 #define G_PID_FORMAT "i" 276 277 #define GLIB_SYSDEF_AF_UNIX 1 278 #define GLIB_SYSDEF_AF_INET 2 279 #define GLIB_SYSDEF_AF_INET6 10 280 281 #define GLIB_SYSDEF_MSG_OOB 1 282 #define GLIB_SYSDEF_MSG_PEEK 2 283 #define GLIB_SYSDEF_MSG_DONTROUTE 4 284 285 #define G_DIR_SEPARATOR '/' 286 #define G_DIR_SEPARATOR_S "/" 287 #define G_SEARCHPATH_SEPARATOR ':' 288 #define G_SEARCHPATH_SEPARATOR_S ":" 289 290 G_END_DECLS 291 292 #endif /* __GLIBCONFIG_H__ */ 293