b7c7d415fb7357a60a05d4d8f1665bad0e30277d
1 /* glibconfig.h
2 *
3 * This is a generated file. Please modify 'configure.in'
4 */
6 #ifndef __G_LIBCONFIG_H__
7 #define __G_LIBCONFIG_H__
9 #include <glib/gmacros.h>
11 #include <limits.h>
12 #include <float.h>
13 #define GLIB_HAVE_ALLOCA_H
14 #define GLIB_HAVE_SYS_POLL_H
16 G_BEGIN_DECLS
18 #define G_MINFLOAT FLT_MIN
19 #define G_MAXFLOAT FLT_MAX
20 #define G_MINDOUBLE DBL_MIN
21 #define G_MAXDOUBLE DBL_MAX
22 #define G_MINSHORT SHRT_MIN
23 #define G_MAXSHORT SHRT_MAX
24 #define G_MAXUSHORT USHRT_MAX
25 #define G_MININT INT_MIN
26 #define G_MAXINT INT_MAX
27 #define G_MAXUINT UINT_MAX
28 #define G_MINLONG LONG_MIN
29 #define G_MAXLONG LONG_MAX
30 #define G_MAXULONG ULONG_MAX
32 typedef signed char gint8;
33 typedef unsigned char guint8;
34 typedef signed short gint16;
35 typedef unsigned short guint16;
36 #define G_GINT16_MODIFIER "h"
37 #define G_GINT16_FORMAT "hi"
38 #define G_GUINT16_FORMAT "hu"
39 typedef signed int gint32;
40 typedef unsigned int guint32;
41 #define G_GINT32_MODIFIER ""
42 #define G_GINT32_FORMAT "i"
43 #define G_GUINT32_FORMAT "u"
44 #define G_HAVE_GINT64 1 /* deprecated, always true */
46 G_GNUC_EXTENSION typedef signed long long gint64;
47 G_GNUC_EXTENSION typedef unsigned long long guint64;
49 #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
50 #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
51 #define G_GINT64_MODIFIER "ll"
52 #define G_GINT64_FORMAT "lli"
53 #define G_GUINT64_FORMAT "llu"
55 #define GLIB_SIZEOF_VOID_P 4
56 #define GLIB_SIZEOF_LONG 4
57 #define GLIB_SIZEOF_SIZE_T 4
59 typedef signed long gssize;
60 typedef unsigned long gsize;
61 #define G_GSIZE_MODIFIER "l"
62 #define G_GSSIZE_FORMAT "li"
63 #define G_GSIZE_FORMAT "lu"
65 #define G_MAXSIZE G_MAXULONG
67 #define GPOINTER_TO_INT(p) ((gint) (p))
68 #define GPOINTER_TO_UINT(p) ((guint) (p))
70 #define GINT_TO_POINTER(i) ((gpointer) (i))
71 #define GUINT_TO_POINTER(u) ((gpointer) (u))
73 #ifdef NeXT /* @#%@! NeXTStep */
74 # define g_ATEXIT(proc) (!atexit (proc))
75 #else
76 # define g_ATEXIT(proc) (atexit (proc))
77 #endif
79 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
81 #define GLIB_MAJOR_VERSION 2
82 #define GLIB_MINOR_VERSION 12
83 #define GLIB_MICRO_VERSION 9
85 #define G_OS_UNIX
87 #define G_VA_COPY va_copy
89 #ifdef __cplusplus
90 #define G_HAVE_INLINE 1
91 #else /* !__cplusplus */
92 #define G_HAVE_INLINE 1
93 #define G_HAVE___INLINE 1
94 #define G_HAVE___INLINE__ 1
95 #endif /* !__cplusplus */
97 #ifdef __cplusplus
98 #define G_CAN_INLINE 1
99 #else /* !__cplusplus */
100 #define G_CAN_INLINE 1
101 #endif
103 #ifndef __cplusplus
104 # define G_HAVE_ISO_VARARGS 1
105 #endif
106 #ifdef __cplusplus
107 # define G_HAVE_ISO_VARARGS 1
108 #endif
110 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
111 * is passed ISO vararg support is turned off, and there is no work
112 * around to turn it on, so we unconditionally turn it off.
113 */
114 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
115 # undef G_HAVE_ISO_VARARGS
116 #endif
118 #define G_HAVE_GNUC_VARARGS 1
119 #ifdef __ppc__
120 #define G_HAVE_GROWING_STACK 1
121 #else
122 #define G_HAVE_GROWING_STACK 0
123 #endif
125 #define G_GNUC_INTERNAL
127 #define G_THREADS_ENABLED
128 #define G_THREADS_IMPL_POSIX
129 typedef struct _GStaticMutex GStaticMutex;
130 struct _GStaticMutex
131 {
132 struct _GMutex *runtime_mutex;
133 union {
134 char pad[44];
135 double dummy_double;
136 void *dummy_pointer;
137 long dummy_long;
138 } static_mutex;
139 };
140 #ifdef __ppc__
141 #define G_STATIC_MUTEX_INIT { NULL, { { 50,-86,-85,-89,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} } }
142 #else
143 #define G_STATIC_MUTEX_INIT { NULL, { { -89,-85,-86,50,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} } }
144 #endif
145 #define g_static_mutex_get_mutex(mutex) \
146 (g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : \
147 g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
148 /* This represents a system thread as used by the implementation. An
149 * alien implementaion, as loaded by g_thread_init can only count on
150 * "sizeof (gpointer)" bytes to store their info. We however need more
151 * for some of our native implementations. */
152 typedef union _GSystemThread GSystemThread;
153 union _GSystemThread
154 {
155 char data[4];
156 double dummy_double;
157 void *dummy_pointer;
158 long dummy_long;
159 };
161 #ifdef __ppc__
162 #define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1
164 #define GINT16_TO_BE(val) ((gint16) (val))
165 #define GUINT16_TO_BE(val) ((guint16) (val))
166 #define GINT16_TO_LE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
167 #define GUINT16_TO_LE(val) (GUINT16_SWAP_LE_BE (val))
168 #define GINT32_TO_BE(val) ((gint32) (val))
169 #define GUINT32_TO_BE(val) ((guint32) (val))
170 #define GINT32_TO_LE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
171 #define GUINT32_TO_LE(val) (GUINT32_SWAP_LE_BE (val))
172 #define GINT64_TO_BE(val) ((gint64) (val))
173 #define GUINT64_TO_BE(val) ((guint64) (val))
174 #define GINT64_TO_LE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
175 #define GUINT64_TO_LE(val) (GUINT64_SWAP_LE_BE (val))
177 #else
179 #define GINT16_TO_LE(val) ((gint16) (val))
180 #define GUINT16_TO_LE(val) ((guint16) (val))
181 #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
182 #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
183 #define GINT32_TO_LE(val) ((gint32) (val))
184 #define GUINT32_TO_LE(val) ((guint32) (val))
185 #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
186 #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
187 #define GINT64_TO_LE(val) ((gint64) (val))
188 #define GUINT64_TO_LE(val) ((guint64) (val))
189 #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
190 #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
192 #endif
194 #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
195 #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
196 #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
197 #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
198 #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
199 #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
200 #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
201 #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
203 #ifdef __ppc__
204 #define G_BYTE_ORDER G_BIG_ENDIAN
205 #else
206 #define G_BYTE_ORDER G_LITTLE_ENDIAN
207 #endif
209 #define GLIB_SYSDEF_POLLIN =1
210 #define GLIB_SYSDEF_POLLOUT =4
211 #define GLIB_SYSDEF_POLLPRI =2
212 #define GLIB_SYSDEF_POLLHUP =16
213 #define GLIB_SYSDEF_POLLERR =8
214 #define GLIB_SYSDEF_POLLNVAL =32
216 #define G_MODULE_SUFFIX "so"
218 typedef int GPid;
220 G_END_DECLS
222 #endif /* GLIBCONFIG_H */