3
* This is a generated file. Please modify 'configure.ac'
6
#ifndef __G_LIBCONFIG_H__
7
#define __G_LIBCONFIG_H__
9
#include <glib/gmacros.h>
13
#define GLIB_HAVE_ALLOCA_H
14
#define GLIB_HAVE_SYS_POLL_H
16
/* Specifies that GLib's g_print*() functions wrap the
17
* system printf functions. This is useful to know, for example,
18
* when using glibc's register_printf_function().
20
#define GLIB_USING_SYSTEM_PRINTF
24
#define G_MINFLOAT FLT_MIN
25
#define G_MAXFLOAT FLT_MAX
26
#define G_MINDOUBLE DBL_MIN
27
#define G_MAXDOUBLE DBL_MAX
28
#define G_MINSHORT SHRT_MIN
29
#define G_MAXSHORT SHRT_MAX
30
#define G_MAXUSHORT USHRT_MAX
31
#define G_MININT INT_MIN
32
#define G_MAXINT INT_MAX
33
#define G_MAXUINT UINT_MAX
34
#define G_MINLONG LONG_MIN
35
#define G_MAXLONG LONG_MAX
36
#define G_MAXULONG ULONG_MAX
38
typedef signed char gint8;
39
typedef unsigned char guint8;
40
typedef signed short gint16;
41
typedef unsigned short guint16;
42
#define G_GINT16_MODIFIER "h"
43
#define G_GINT16_FORMAT "hi"
44
#define G_GUINT16_FORMAT "hu"
45
typedef signed int gint32;
46
typedef unsigned int guint32;
47
#define G_GINT32_MODIFIER ""
48
#define G_GINT32_FORMAT "i"
49
#define G_GUINT32_FORMAT "u"
50
#define G_HAVE_GINT64 1 /* deprecated, always true */
52
typedef signed long gint64;
53
typedef unsigned long guint64;
55
#define G_GINT64_CONSTANT(val) (val##L)
56
#define G_GUINT64_CONSTANT(val) (val##UL)
57
#define G_GINT64_MODIFIER "l"
58
#define G_GINT64_FORMAT "li"
59
#define G_GUINT64_FORMAT "lu"
61
#define GLIB_SIZEOF_VOID_P 8
62
#define GLIB_SIZEOF_LONG 8
63
#define GLIB_SIZEOF_SIZE_T 8
65
typedef signed long gssize;
66
typedef unsigned long gsize;
67
#define G_GSIZE_MODIFIER "l"
68
#define G_GSSIZE_FORMAT "li"
69
#define G_GSIZE_FORMAT "lu"
71
#define G_MAXSIZE G_MAXULONG
72
#define G_MINSSIZE G_MINLONG
73
#define G_MAXSSIZE G_MAXLONG
75
typedef gint64 goffset;
76
#define G_MINOFFSET G_MININT64
77
#define G_MAXOFFSET G_MAXINT64
79
#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
80
#define G_GOFFSET_FORMAT G_GINT64_FORMAT
81
#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
84
#define GPOINTER_TO_INT(p) ((gint) (glong) (p))
85
#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p))
87
#define GINT_TO_POINTER(i) ((gpointer) (glong) (i))
88
#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
90
typedef signed long gintptr;
91
typedef unsigned long guintptr;
93
#define G_GINTPTR_MODIFIER "l"
94
#define G_GINTPTR_FORMAT "li"
95
#define G_GUINTPTR_FORMAT "lu"
97
#ifdef NeXT /* @#%@! NeXTStep */
98
# define g_ATEXIT(proc) (!atexit (proc))
100
# define g_ATEXIT(proc) (atexit (proc))
103
#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
105
#define GLIB_MAJOR_VERSION 2
106
#define GLIB_MINOR_VERSION 25
107
#define GLIB_MICRO_VERSION 12
112
#define G_VA_COPY va_copy
113
#define G_VA_COPY_AS_ARRAY 1
116
#define G_HAVE_INLINE 1
117
#else /* !__cplusplus */
118
#define G_HAVE_INLINE 1
119
#define G_HAVE___INLINE 1
120
#define G_HAVE___INLINE__ 1
121
#endif /* !__cplusplus */
124
#define G_CAN_INLINE 1
125
#else /* !__cplusplus */
126
#define G_CAN_INLINE 1
130
# define G_HAVE_ISO_VARARGS 1
133
# define G_HAVE_ISO_VARARGS 1
136
/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
137
* is passed ISO vararg support is turned off, and there is no work
138
* around to turn it on, so we unconditionally turn it off.
140
#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
141
# undef G_HAVE_ISO_VARARGS
144
#define G_HAVE_GNUC_VARARGS 1
145
#define G_HAVE_GROWING_STACK 0
147
#define G_HAVE_GNUC_VISIBILITY 1
148
#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
149
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
150
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
151
#define G_GNUC_INTERNAL __hidden
152
#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
153
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
155
#define G_GNUC_INTERNAL
158
#define G_THREADS_ENABLED
159
#define G_THREADS_IMPL_POSIX
160
typedef struct _GStaticMutex GStaticMutex;
163
struct _GMutex *runtime_mutex;
171
#define G_STATIC_MUTEX_INIT { NULL, { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } }
172
#define g_static_mutex_get_mutex(mutex) \
173
(g_thread_use_default_impl ? ((GMutex*)(gpointer) ((mutex)->static_mutex.pad)) : \
174
g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
175
/* This represents a system thread as used by the implementation. An
176
* alien implementaion, as loaded by g_thread_init can only count on
177
* "sizeof (gpointer)" bytes to store their info. We however need more
178
* for some of our native implementations. */
179
typedef union _GSystemThread GSystemThread;
188
#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1
190
#define GINT16_TO_LE(val) ((gint16) (val))
191
#define GUINT16_TO_LE(val) ((guint16) (val))
192
#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
193
#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
194
#define GINT32_TO_LE(val) ((gint32) (val))
195
#define GUINT32_TO_LE(val) ((guint32) (val))
196
#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
197
#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
198
#define GINT64_TO_LE(val) ((gint64) (val))
199
#define GUINT64_TO_LE(val) ((guint64) (val))
200
#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
201
#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
202
#define GLONG_TO_LE(val) ((glong) GINT64_TO_LE (val))
203
#define GULONG_TO_LE(val) ((gulong) GUINT64_TO_LE (val))
204
#define GLONG_TO_BE(val) ((glong) GINT64_TO_BE (val))
205
#define GULONG_TO_BE(val) ((gulong) GUINT64_TO_BE (val))
206
#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
207
#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
208
#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
209
#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
210
#define GSIZE_TO_LE(val) ((gsize) GUINT64_TO_LE (val))
211
#define GSSIZE_TO_LE(val) ((gssize) GINT64_TO_LE (val))
212
#define GSIZE_TO_BE(val) ((gsize) GUINT64_TO_BE (val))
213
#define GSSIZE_TO_BE(val) ((gssize) GINT64_TO_BE (val))
214
#define G_BYTE_ORDER G_LITTLE_ENDIAN
216
#define GLIB_SYSDEF_POLLIN =1
217
#define GLIB_SYSDEF_POLLOUT =4
218
#define GLIB_SYSDEF_POLLPRI =2
219
#define GLIB_SYSDEF_POLLHUP =16
220
#define GLIB_SYSDEF_POLLERR =8
221
#define GLIB_SYSDEF_POLLNVAL =32
223
#define G_MODULE_SUFFIX "so"
225
/* A GPid is an abstraction for a process "handle". It is *not* an
226
* abstraction for a process identifier in general. GPid is used in
227
* GLib only for descendant processes spawned with the g_spawn*
228
* functions. On POSIX there is no "process handle" concept as such,
229
* but on Windows a GPid is a handle to a process, a kind of pointer,
230
* not a process identifier.
234
#define GLIB_SYSDEF_AF_UNIX 1
235
#define GLIB_SYSDEF_AF_INET 2
236
#define GLIB_SYSDEF_AF_INET6 10
238
#define GLIB_SYSDEF_MSG_OOB 1
239
#define GLIB_SYSDEF_MSG_PEEK 2
240
#define GLIB_SYSDEF_MSG_DONTROUTE 4
244
#endif /* GLIBCONFIG_H */