source: trunk/glib/glibconfig.h.darwin.x86@ 360

Last change on this file since 360 was 326, checked in by cinc, 18 years ago

Portability patches for Windows, Linux, Darwin by Bird.

File size: 5.5 KB
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
16G_BEGIN_DECLS
17
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
31
32typedef signed char gint8;
33typedef unsigned char guint8;
34typedef signed short gint16;
35typedef unsigned short guint16;
36#define G_GINT16_MODIFIER "h"
37#define G_GINT16_FORMAT "hi"
38#define G_GUINT16_FORMAT "hu"
39typedef signed int gint32;
40typedef 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 */
45
46G_GNUC_EXTENSION typedef signed long long gint64;
47G_GNUC_EXTENSION typedef unsigned long long guint64;
48
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"
54
55#define GLIB_SIZEOF_VOID_P 4
56#define GLIB_SIZEOF_LONG 4
57#define GLIB_SIZEOF_SIZE_T 4
58
59typedef signed long gssize;
60typedef unsigned long gsize;
61#define G_GSIZE_MODIFIER "l"
62#define G_GSSIZE_FORMAT "li"
63#define G_GSIZE_FORMAT "lu"
64
65#define G_MAXSIZE G_MAXULONG
66#define G_MINSSIZE G_MINLONG
67#define G_MAXSSIZE G_MAXLONG
68
69typedef gint64 goffset;
70#define G_MINOFFSET G_MININT64
71#define G_MAXOFFSET G_MAXINT64
72
73
74#define GPOINTER_TO_INT(p) ((gint) (p))
75#define GPOINTER_TO_UINT(p) ((guint) (p))
76
77#define GINT_TO_POINTER(i) ((gpointer) (i))
78#define GUINT_TO_POINTER(u) ((gpointer) (u))
79
80#ifdef NeXT /* @#%@! NeXTStep */
81# define g_ATEXIT(proc) (!atexit (proc))
82#else
83# define g_ATEXIT(proc) (atexit (proc))
84#endif
85
86#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
87
88#define GLIB_MAJOR_VERSION 2
89#define GLIB_MINOR_VERSION 16
90#define GLIB_MICRO_VERSION 1
91
92#define G_OS_UNIX
93
94#define G_VA_COPY va_copy
95
96#ifdef __cplusplus
97#define G_HAVE_INLINE 1
98#else /* !__cplusplus */
99#define G_HAVE_INLINE 1
100#define G_HAVE___INLINE 1
101#define G_HAVE___INLINE__ 1
102#endif /* !__cplusplus */
103
104#ifdef __cplusplus
105#define G_CAN_INLINE 1
106#else /* !__cplusplus */
107#define G_CAN_INLINE 1
108#endif
109
110#ifndef __cplusplus
111# define G_HAVE_ISO_VARARGS 1
112#endif
113#ifdef __cplusplus
114# define G_HAVE_ISO_VARARGS 1
115#endif
116
117/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
118 * is passed ISO vararg support is turned off, and there is no work
119 * around to turn it on, so we unconditionally turn it off.
120 */
121#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
122# undef G_HAVE_ISO_VARARGS
123#endif
124
125#define G_HAVE_GNUC_VARARGS 1
126#define G_HAVE_GROWING_STACK 0
127
128#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
129#define G_GNUC_INTERNAL __hidden
130#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
131#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
132#else
133#define G_GNUC_INTERNAL
134#endif
135
136#define G_THREADS_ENABLED
137#define G_THREADS_IMPL_POSIX
138typedef struct _GStaticMutex GStaticMutex;
139struct _GStaticMutex
140{
141 struct _GMutex *runtime_mutex;
142 union {
143 char pad[44];
144 double dummy_double;
145 void *dummy_pointer;
146 long dummy_long;
147 } static_mutex;
148};
149#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} } }
150#define g_static_mutex_get_mutex(mutex) \
151 (g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : \
152 g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
153/* This represents a system thread as used by the implementation. An
154 * alien implementaion, as loaded by g_thread_init can only count on
155 * "sizeof (gpointer)" bytes to store their info. We however need more
156 * for some of our native implementations. */
157typedef union _GSystemThread GSystemThread;
158union _GSystemThread
159{
160 char data[4];
161 double dummy_double;
162 void *dummy_pointer;
163 long dummy_long;
164};
165
166#define GINT16_TO_LE(val) ((gint16) (val))
167#define GUINT16_TO_LE(val) ((guint16) (val))
168#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
169#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
170#define GINT32_TO_LE(val) ((gint32) (val))
171#define GUINT32_TO_LE(val) ((guint32) (val))
172#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
173#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
174#define GINT64_TO_LE(val) ((gint64) (val))
175#define GUINT64_TO_LE(val) ((guint64) (val))
176#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
177#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
178#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
179#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
180#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
181#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
182#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
183#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
184#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
185#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
186#define G_BYTE_ORDER G_LITTLE_ENDIAN
187
188#define GLIB_SYSDEF_POLLIN =1
189#define GLIB_SYSDEF_POLLOUT =4
190#define GLIB_SYSDEF_POLLPRI =2
191#define GLIB_SYSDEF_POLLHUP =16
192#define GLIB_SYSDEF_POLLERR =8
193#define GLIB_SYSDEF_POLLNVAL =32
194
195#define G_MODULE_SUFFIX "so"
196
197typedef int GPid;
198
199G_END_DECLS
200
201#endif /* GLIBCONFIG_H */
Note: See TracBrowser for help on using the repository browser.