/[zanavi_public1]/navit/navit/support/glib/glibconfig.h
ZANavi

Contents of /navit/navit/support/glib/glibconfig.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Mon Feb 4 17:41:59 2013 UTC (11 years, 2 months ago) by zoff99
File MIME type: text/plain
File size: 7105 byte(s)
new map version, lots of fixes and experimental new features
1 /* glibconfig.h.win32.in Merged from two versions generated by configure for gcc and MSVC. */
2 /* glibconfig.h
3 *
4 * This is a generated file. Please modify 'configure.in'
5 */
6
7 #ifndef __G_LIBCONFIG_H__
8 #define __G_LIBCONFIG_H__
9
10 #include <glib/gmacros.h>
11
12 #include <limits.h>
13 #include <float.h>
14 #include "config.h"
15
16 G_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
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 */
45
46 #ifndef _MSC_VER
47 G_GNUC_EXTENSION typedef signed long long gint64;
48 G_GNUC_EXTENSION typedef unsigned long long guint64;
49 #else /* _MSC_VER */
50 typedef signed __int64 gint64;
51 typedef unsigned __int64 guint64;
52 #endif /* _MSC_VER */
53
54 #ifndef _MSC_VER
55 #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
56 #else /* _MSC_VER */
57 #define G_GINT64_CONSTANT(val) (val##i64)
58 #endif /* _MSC_VER */
59 #ifndef _MSC_VER
60 #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
61 #else /* _MSC_VER */
62 #define G_GUINT64_CONSTANT(val) (val##Ui64)
63 #endif /* _MSC_VER */
64 #define G_GINT64_MODIFIER "I64"
65 #define G_GINT64_FORMAT "I64i"
66 #define G_GUINT64_FORMAT "I64u"
67
68 #if defined(_WIN64) || defined(_M_X64) || defined(_M_AMD64)
69
70 #define GLIB_SIZEOF_VOID_P 8
71 #define GLIB_SIZEOF_LONG 4
72 #define GLIB_SIZEOF_SIZE_T 8
73
74 typedef signed long long gssize;
75 typedef unsigned long long gsize;
76 #define G_GSIZE_MODIFIER "I64"
77 #define G_GSSIZE_FORMAT "I64d"
78 #define G_GSIZE_FORMAT "I64u"
79
80 #define G_MAXSIZE G_MAXUINT64
81 #define G_MINSSIZE G_MININT64
82 #define G_MAXSSIZE G_MAXINT64
83
84 #else
85
86 #define GLIB_SIZEOF_VOID_P 4
87 #define GLIB_SIZEOF_LONG 4
88 #define GLIB_SIZEOF_SIZE_T 4
89
90 typedef signed int gssize;
91 typedef unsigned int gsize;
92 #define G_GSIZE_MODIFIER ""
93 #define G_GSSIZE_FORMAT "i"
94 #define G_GSIZE_FORMAT "u"
95
96 #define G_MAXSIZE G_MAXUINT
97 #define G_MINSSIZE G_MININT
98 #define G_MAXSSIZE G_MAXINT
99
100 #endif
101
102 typedef gint64 goffset;
103 #define G_MINOFFSET G_MININT64
104 #define G_MAXOFFSET G_MAXINT64
105
106 #ifndef _WIN64
107
108 #define GPOINTER_TO_INT(p) ((gint) (p))
109 #define GPOINTER_TO_UINT(p) ((guint) (p))
110
111 #define GINT_TO_POINTER(i) ((gpointer) (i))
112 #define GUINT_TO_POINTER(u) ((gpointer) (u))
113
114 typedef signed int gintptr;
115 typedef unsigned int guintptr;
116
117 #else
118
119 #define GPOINTER_TO_INT(p) ((gint) (gint64) (p))
120 #define GPOINTER_TO_UINT(p) ((guint) (guint64) (p))
121
122 #define GINT_TO_POINTER(i) ((gpointer) (gint64) (i))
123 #define GUINT_TO_POINTER(u) ((gpointer) (guint64) (u))
124
125 #ifndef _MSC_VER
126 typedef signed long long gintptr;
127 typedef unsigned long long guintptr;
128 #else
129 typedef signed __int64 gintptr;
130 typedef unsigned __int64 guintptr;
131 #endif
132
133 #endif
134
135 #ifdef NeXT /* @#%@! NeXTStep */
136 # define g_ATEXIT(proc) (!atexit (proc))
137 #else
138 # define g_ATEXIT(proc) (atexit (proc))
139 #endif
140
141 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
142
143 #define GLIB_MAJOR_VERSION 2
144 #define GLIB_MINOR_VERSION 18
145 #define GLIB_MICRO_VERSION 1
146
147 #ifdef HAVE_API_WIN32_BASE
148 #define G_OS_WIN32
149 #define G_PLATFORM_WIN32
150 #endif
151
152
153 #ifndef _MSC_VER
154 #define G_VA_COPY va_copy
155 #endif /* not _MSC_VER */
156
157 #ifdef __cplusplus
158 #define G_HAVE_INLINE 1
159 #else /* !__cplusplus */
160 #ifndef _MSC_VER
161 #define G_HAVE_INLINE 1
162 #endif /* _MSC_VER */
163 #define G_HAVE___INLINE 1
164 #if !defined(_MSC_VER) && !defined(__DMC__)
165 #define G_HAVE___INLINE__ 1
166 #endif /* !_MSC_VER and !__DMC__ */
167 #endif /* !__cplusplus */
168
169 #define G_CAN_INLINE 1
170
171 #ifndef _MSC_VER
172 #define G_HAVE_ISO_VARARGS 1
173
174 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
175 * is passed ISO vararg support is turned off, and there is no work
176 * around to turn it on, so we unconditionally turn it off.
177 */
178 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
179 # undef G_HAVE_ISO_VARARGS
180 #endif
181
182 #define G_HAVE_GNUC_VARARGS 1
183 #else /* _MSC_VER */
184 /* varargs macros available since msvc8 (vs2005) */
185 # if _MSC_VER >= 1400
186 # define G_HAVE_ISO_VARARGS 1
187 # endif
188 #endif /* not _MSC_VER */
189 #define G_HAVE_GROWING_STACK 0
190
191 #define G_GNUC_INTERNAL
192
193 #define G_THREADS_ENABLED
194 #define G_THREADS_IMPL_WIN32
195 typedef struct _GMutex* GStaticMutex;
196 #define G_STATIC_MUTEX_INIT NULL
197 #define g_static_mutex_get_mutex(mutex) \
198 (g_static_mutex_get_mutex_impl_shortcut (mutex))
199 /* This represents a system thread as used by the implementation. An
200 * alien implementaion, as loaded by g_thread_init can only count on
201 * "sizeof (gpointer)" bytes to store their info. We however need more
202 * for some of our native implementations. */
203 typedef union _GSystemThread GSystemThread;
204 union _GSystemThread
205 {
206 #ifndef _WIN64
207 char data[4];
208 #else
209 char data[8];
210 #endif
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 #define G_MODULE_SUFFIX "dll"
246
247 #define HAVE_GOOD_PRINTF
248 #define NO_SYS_SIGLIST_DECL
249 #define GLIB_STATIC_COMPILATION
250
251
252 #define G_DISABLE_CHECKS
253
254
255 /* A GPid is an abstraction for a process "handle". It is *not* an
256 * abstraction for a process identifier in general. GPid is used in
257 * GLib only for descendant processes spawned with the g_spawn*
258 * functions. On POSIX there is no "process handle" concept as such,
259 * but on Windows a GPid is a handle to a process, a kind of pointer,
260 * not a process identifier.
261 */
262 typedef void * GPid;
263
264 G_END_DECLS
265
266 #endif /* GLIBCONFIG_H */

   
Visit the ZANavi Wiki