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