1 /* glibconfig.h.win32.in Merged from two versions generated by configure for gcc and MSVC. */
4 * This is a generated file. Please modify 'configure.in'
7 #ifndef __G_LIBCONFIG_H__
8 #define __G_LIBCONFIG_H__
10 #include <glib/gmacros.h>
16 #define G_MINFLOAT FLT_MIN
17 #define G_MAXFLOAT FLT_MAX
18 #define G_MINDOUBLE DBL_MIN
19 #define G_MAXDOUBLE DBL_MAX
20 #define G_MINSHORT SHRT_MIN
21 #define G_MAXSHORT SHRT_MAX
22 #define G_MAXUSHORT USHRT_MAX
23 #define G_MININT INT_MIN
24 #define G_MAXINT INT_MAX
25 #define G_MAXUINT UINT_MAX
26 #define G_MINLONG LONG_MIN
27 #define G_MAXLONG LONG_MAX
28 #define G_MAXULONG ULONG_MAX
30 typedef signed char gint8;
31 typedef unsigned char guint8;
32 typedef signed short gint16;
33 typedef unsigned short guint16;
34 #define G_GINT16_MODIFIER "h"
35 #define G_GINT16_FORMAT "hi"
36 #define G_GUINT16_FORMAT "hu"
37 typedef signed int gint32;
38 typedef unsigned int guint32;
39 #define G_GINT32_MODIFIER ""
40 #define G_GINT32_FORMAT "i"
41 #define G_GUINT32_FORMAT "u"
42 #define G_HAVE_GINT64 1 /* deprecated, always true */
45 G_GNUC_EXTENSION typedef signed long long gint64;
46 G_GNUC_EXTENSION typedef unsigned long long guint64;
48 typedef signed __int64 gint64;
49 typedef unsigned __int64 guint64;
53 #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
55 #define G_GINT64_CONSTANT(val) (val##i64)
57 #define G_GINT64_MODIFIER "I64"
58 #define G_GINT64_FORMAT "I64i"
59 #define G_GUINT64_FORMAT "I64u"
61 #define GLIB_SIZEOF_VOID_P 4
62 #define GLIB_SIZEOF_LONG 4
63 #define GLIB_SIZEOF_SIZE_T 4
65 typedef signed int gssize;
66 typedef unsigned int gsize;
67 #define G_GSIZE_MODIFIER ""
68 #define G_GSSIZE_FORMAT "i"
69 #define G_GSIZE_FORMAT "u"
71 #define G_MAXSIZE G_MAXUINT
73 #define GPOINTER_TO_INT(p) ((gint) (p))
74 #define GPOINTER_TO_UINT(p) ((guint) (p))
76 #define GINT_TO_POINTER(i) ((gpointer) (i))
77 #define GUINT_TO_POINTER(u) ((gpointer) (u))
79 #ifdef NeXT /* @#%@! NeXTStep */
80 # define g_ATEXIT(proc) (!atexit (proc))
82 # define g_ATEXIT(proc) (atexit (proc))
85 #define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
87 #define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@
88 #define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
89 #define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@
92 #define G_PLATFORM_WIN32
95 #define G_VA_COPY va_copy
96 #endif /* not _MSC_VER */
99 #define G_HAVE_INLINE 1
100 #else /* !__cplusplus */
102 #define G_HAVE_INLINE 1
105 #endif /* _MSC_VER */
106 #define G_HAVE___INLINE 1
108 #define G_HAVE___INLINE__ 1
109 #endif /* not _MSC_VER */
110 #endif /* !__cplusplus */
114 # define G_HAVE_ISO_VARARGS 1
117 # define G_HAVE_ISO_VARARGS 1
120 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
121 * is passed ISO vararg support is turned off, and there is no work
122 * around to turn it on, so we unconditionally turn it off.
124 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
125 # undef G_HAVE_ISO_VARARGS
128 #define G_HAVE_GNUC_VARARGS 1
129 #endif /* not _MSC_VER */
130 #define G_HAVE_GROWING_STACK 0
133 #define G_GNUC_INTERNAL
135 #define G_THREADS_ENABLED
136 #define G_THREADS_IMPL_WIN32
137 typedef struct _GMutex* GStaticMutex;
138 #define G_STATIC_MUTEX_INIT NULL
139 #define g_static_mutex_get_mutex(mutex) \
140 (g_static_mutex_get_mutex_impl_shortcut (mutex))
141 /* This represents a system thread as used by the implementation. An
142 * alien implementaion, as loaded by g_thread_init can only count on
143 * "sizeof (gpointer)" bytes to store their info. We however need more
144 * for some of our native implementations. */
145 typedef union _GSystemThread GSystemThread;
154 #define GINT16_TO_LE(val) ((gint16) (val))
155 #define GUINT16_TO_LE(val) ((guint16) (val))
156 #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
157 #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
158 #define GINT32_TO_LE(val) ((gint32) (val))
159 #define GUINT32_TO_LE(val) ((guint32) (val))
160 #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
161 #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
162 #define GINT64_TO_LE(val) ((gint64) (val))
163 #define GUINT64_TO_LE(val) ((guint64) (val))
164 #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
165 #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
166 #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
167 #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
168 #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
169 #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
170 #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
171 #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
172 #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
173 #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
174 #define G_BYTE_ORDER G_LITTLE_ENDIAN
176 #define GLIB_SYSDEF_POLLIN =1
177 #define GLIB_SYSDEF_POLLOUT =4
178 #define GLIB_SYSDEF_POLLPRI =2
179 #define GLIB_SYSDEF_POLLHUP =16
180 #define GLIB_SYSDEF_POLLERR =8
181 #define GLIB_SYSDEF_POLLNVAL =32
183 #define G_MODULE_SUFFIX "dll"
189 #endif /* GLIBCONFIG_H */