Ticket #19183: glibconfig.h

File glibconfig.h, 7.7 KB (added by martijn@…, 15 years ago)
Line 
1/* glibconfig.h
2 *
3 * This is a generated file.  Please modify 'configure.in'
4 */
5
6#ifndef __G_LIBCONFIG_H__
7#define __G_LIBCONFIG_H__
8
9#include <glib/gmacros.h>
10
11#include <limits.h>
12#include <float.h>
13#define GLIB_HAVE_ALLOCA_H
14#define GLIB_HAVE_SYS_POLL_H
15
16#if (defined(__ppc__) || defined(__ppc64__))
17 /* Specifies that GLib's g_print*() functions wrap the
18 * system printf functions.  This is useful to know, for example,
19 * when using glibc's register_printf_function().
20 */
21#define GLIB_USING_SYSTEM_PRINTF
22
23#endif /* __ppc__ || __ppc64__ */
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;
42typedef signed short gint16;
43typedef unsigned short guint16;
44#define G_GINT16_MODIFIER "h"
45#define G_GINT16_FORMAT "hi"
46#define G_GUINT16_FORMAT "hu"
47typedef signed int gint32;
48typedef unsigned int guint32;
49#define G_GINT32_MODIFIER ""
50#define G_GINT32_FORMAT "i"
51#define G_GUINT32_FORMAT "u"
52#define G_HAVE_GINT64 1          /* deprecated, always true */
53
54G_GNUC_EXTENSION typedef signed long long gint64;
55G_GNUC_EXTENSION typedef unsigned long long guint64;
56
57#define G_GINT64_CONSTANT(val)  (G_GNUC_EXTENSION (val##LL))
58#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
59#define G_GINT64_MODIFIER "ll"
60#define G_GINT64_FORMAT "lli"
61#define G_GUINT64_FORMAT "llu"
62
63#define GLIB_SIZEOF_VOID_P 4
64#define GLIB_SIZEOF_LONG   4
65#define GLIB_SIZEOF_SIZE_T 4
66
67typedef signed long gssize;
68typedef unsigned long gsize;
69#define G_GSIZE_MODIFIER "l"
70#define G_GSSIZE_FORMAT "li"
71#define G_GSIZE_FORMAT "lu"
72
73#define G_MAXSIZE       G_MAXULONG
74#define G_MINSSIZE      G_MINLONG
75#define G_MAXSSIZE      G_MAXLONG
76
77typedef gint64 goffset;
78#define G_MINOFFSET     G_MININT64
79#define G_MAXOFFSET     G_MAXINT64
80
81#define G_GOFFSET_MODIFIER      G_GINT64_MODIFIER
82#define G_GOFFSET_FORMAT        G_GINT64_FORMAT
83#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
84
85
86#define GPOINTER_TO_INT(p)      ((gint)   (p))
87#define GPOINTER_TO_UINT(p)     ((guint)  (p))
88
89#define GINT_TO_POINTER(i)      ((gpointer)  (i))
90#define GUINT_TO_POINTER(u)     ((gpointer)  (u))
91
92typedef signed int gintptr;
93typedef unsigned int guintptr;
94
95#ifdef NeXT /* @#%@! NeXTStep */
96# define g_ATEXIT(proc) (!atexit (proc))
97#else
98# define g_ATEXIT(proc) (atexit (proc))
99#endif
100
101#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
102
103#define GLIB_MAJOR_VERSION 2
104#define GLIB_MINOR_VERSION 20
105#define GLIB_MICRO_VERSION 1
106
107#define G_OS_UNIX
108
109
110#define G_VA_COPY       va_copy
111
112#ifdef  __cplusplus
113#define G_HAVE_INLINE   1
114#else   /* !__cplusplus */
115#define G_HAVE_INLINE 1
116#define G_HAVE___INLINE 1
117#define G_HAVE___INLINE__ 1
118#endif  /* !__cplusplus */
119
120#ifdef  __cplusplus
121#define G_CAN_INLINE    1
122#else   /* !__cplusplus */
123#define G_CAN_INLINE    1
124#endif
125
126#ifndef __cplusplus
127# define G_HAVE_ISO_VARARGS 1
128#endif
129#ifdef __cplusplus
130# define G_HAVE_ISO_VARARGS 1
131#endif
132
133/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
134 * is passed ISO vararg support is turned off, and there is no work
135 * around to turn it on, so we unconditionally turn it off.
136 */
137#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
138#  undef G_HAVE_ISO_VARARGS
139#endif
140
141#define G_HAVE_GNUC_VARARGS 1
142#define G_HAVE_GROWING_STACK 0
143
144#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
145#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
146#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
147#define G_GNUC_INTERNAL __hidden
148#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
149#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
150#else
151#define G_GNUC_INTERNAL
152#endif
153
154#define G_THREADS_ENABLED
155#define G_THREADS_IMPL_POSIX
156#if (defined(__ppc__) || defined(__ppc64__))
157typedef struct _GStaticMutex GStaticMutex;
158struct _GStaticMutex
159{
160  struct _GMutex *runtime_mutex;
161  union {
162    char   pad[44];
163    double dummy_double;
164    void  *dummy_pointer;
165    long   dummy_long;
166  } static_mutex;
167};
168#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} } }
169#else /* ! __ppc__ && ! __ppc64__ */
170typedef struct _GMutex* GStaticMutex;
171#define G_STATIC_MUTEX_INIT NULL
172#endif /* __ppc__ || __ppc64__ */
173#define g_static_mutex_get_mutex(mutex) \
174#if (defined(__ppc__) || defined(__ppc64__))
175  (g_thread_use_default_impl ? ((GMutex*)(gpointer) ((mutex)->static_mutex.pad)) : \
176   g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
177#else /* ! __ppc__ && ! __ppc64__ */
178  (g_static_mutex_get_mutex_impl_shortcut (mutex))
179#endif /* __ppc__ || __ppc64__ */
180/* This represents a system thread as used by the implementation. An
181 * alien implementaion, as loaded by g_thread_init can only count on
182 * "sizeof (gpointer)" bytes to store their info. We however need more
183 * for some of our native implementations. */
184typedef union _GSystemThread GSystemThread;
185union _GSystemThread
186{
187  char   data[4];
188  double dummy_double;
189  void  *dummy_pointer;
190  long   dummy_long;
191};
192
193#if (defined(__ppc__) || defined(__ppc64__))
194#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1
195
196#define GINT16_TO_BE(val)       ((gint16) (val))
197#define GUINT16_TO_BE(val)      ((guint16) (val))
198#define GINT16_TO_LE(val)       ((gint16) GUINT16_SWAP_LE_BE (val))
199#define GUINT16_TO_LE(val)      (GUINT16_SWAP_LE_BE (val))
200#define GINT32_TO_BE(val)       ((gint32) (val))
201#define GUINT32_TO_BE(val)      ((guint32) (val))
202#define GINT32_TO_LE(val)       ((gint32) GUINT32_SWAP_LE_BE (val))
203#define GUINT32_TO_LE(val)      (GUINT32_SWAP_LE_BE (val))
204#define GINT64_TO_BE(val)       ((gint64) (val))
205#define GUINT64_TO_BE(val)      ((guint64) (val))
206#define GINT64_TO_LE(val)       ((gint64) GUINT64_SWAP_LE_BE (val))
207#define GUINT64_TO_LE(val)      (GUINT64_SWAP_LE_BE (val))
208#else /* ! __ppc__ && ! __ppc64__ */
209#define GINT16_TO_LE(val)       ((gint16) (val))
210#define GUINT16_TO_LE(val)      ((guint16) (val))
211#define GINT16_TO_BE(val)       ((gint16) GUINT16_SWAP_LE_BE (val))
212#define GUINT16_TO_BE(val)      (GUINT16_SWAP_LE_BE (val))
213#define GINT32_TO_LE(val)       ((gint32) (val))
214#define GUINT32_TO_LE(val)      ((guint32) (val))
215#define GINT32_TO_BE(val)       ((gint32) GUINT32_SWAP_LE_BE (val))
216#define GUINT32_TO_BE(val)      (GUINT32_SWAP_LE_BE (val))
217#define GINT64_TO_LE(val)       ((gint64) (val))
218#define GUINT64_TO_LE(val)      ((guint64) (val))
219#define GINT64_TO_BE(val)       ((gint64) GUINT64_SWAP_LE_BE (val))
220#define GUINT64_TO_BE(val)      (GUINT64_SWAP_LE_BE (val))
221#endif /* __ppc__ || __ppc64__ */
222#define GLONG_TO_LE(val)        ((glong) GINT32_TO_LE (val))
223#define GULONG_TO_LE(val)       ((gulong) GUINT32_TO_LE (val))
224#define GLONG_TO_BE(val)        ((glong) GINT32_TO_BE (val))
225#define GULONG_TO_BE(val)       ((gulong) GUINT32_TO_BE (val))
226#define GINT_TO_LE(val)         ((gint) GINT32_TO_LE (val))
227#define GUINT_TO_LE(val)        ((guint) GUINT32_TO_LE (val))
228#define GINT_TO_BE(val)         ((gint) GINT32_TO_BE (val))
229#define GUINT_TO_BE(val)        ((guint) GUINT32_TO_BE (val))
230#if (defined(__ppc__) || defined(__ppc64__))
231#define G_BYTE_ORDER G_BIG_ENDIAN
232#else /* ! __ppc__ && ! __ppc64__ */
233#define G_BYTE_ORDER G_LITTLE_ENDIAN
234#endif /* __ppc__ || __ppc64__ */
235
236#define GLIB_SYSDEF_POLLIN =1
237#define GLIB_SYSDEF_POLLOUT =4
238#define GLIB_SYSDEF_POLLPRI =2
239#define GLIB_SYSDEF_POLLHUP =16
240#define GLIB_SYSDEF_POLLERR =8
241#define GLIB_SYSDEF_POLLNVAL =32
242
243#define G_MODULE_SUFFIX "so"
244
245/* A GPid is an abstraction for a process "handle". It is *not* an
246 * abstraction for a process identifier in general. GPid is used in
247 * GLib only for descendant processes spawned with the g_spawn*
248 * functions. On POSIX there is no "process handle" concept as such,
249 * but on Windows a GPid is a handle to a process, a kind of pointer,
250 * not a process identifier.
251 */
252typedef int GPid;
253
254G_END_DECLS
255
256#endif /* GLIBCONFIG_H */