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>
17 #define G_MINFLOAT FLT_MIN
18 #define G_MAXFLOAT FLT_MAX
19 #define G_MINDOUBLE DBL_MIN
20 #define G_MAXDOUBLE DBL_MAX
21 #define G_MINSHORT SHRT_MIN
22 #define G_MAXSHORT SHRT_MAX
23 #define G_MAXUSHORT USHRT_MAX
24 #define G_MININT INT_MIN
25 #define G_MAXINT INT_MAX
26 #define G_MAXUINT UINT_MAX
27 #define G_MINLONG LONG_MIN
28 #define G_MAXLONG LONG_MAX
29 #define G_MAXULONG ULONG_MAX
31 typedef signed char gint8;
32 typedef unsigned char guint8;
33 typedef signed short gint16;
34 typedef unsigned short guint16;
35 #define G_GINT16_MODIFIER "h"
36 #define G_GINT16_FORMAT "hi"
37 #define G_GUINT16_FORMAT "hu"
38 typedef signed int gint32;
39 typedef unsigned int guint32;
40 #define G_GINT32_MODIFIER ""
41 #define G_GINT32_FORMAT "i"
42 #define G_GUINT32_FORMAT "u"
43 #define G_HAVE_GINT64 1 /* deprecated, always true */
46 G_GNUC_EXTENSION typedef signed long long gint64;
47 G_GNUC_EXTENSION typedef unsigned long long guint64;
49 typedef signed __int64 gint64;
50 typedef unsigned __int64 guint64;
54 #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
56 #define G_GINT64_CONSTANT(val) (val##i64)
59 #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
61 #define G_GUINT64_CONSTANT(val) (val##Ui64)
63 #define G_GINT64_MODIFIER "I64"
64 #define G_GINT64_FORMAT "I64i"
65 #define G_GUINT64_FORMAT "I64u"
67 #define GLIB_SIZEOF_VOID_P 4
68 #define GLIB_SIZEOF_LONG 4
69 #define GLIB_SIZEOF_SIZE_T 4
71 typedef signed int gssize;
72 typedef unsigned int gsize;
73 #define G_GSIZE_MODIFIER ""
74 #define G_GSSIZE_FORMAT "i"
75 #define G_GSIZE_FORMAT "u"
77 #define G_MAXSIZE G_MAXUINT
79 #define GPOINTER_TO_INT(p) ((gint) (p))
80 #define GPOINTER_TO_UINT(p) ((guint) (p))
82 #define GINT_TO_POINTER(i) ((gpointer) (i))
83 #define GUINT_TO_POINTER(u) ((gpointer) (u))
85 #ifdef NeXT /* @#%@! NeXTStep */
86 # define g_ATEXIT(proc) (!atexit (proc))
88 # define g_ATEXIT(proc) (atexit (proc))
91 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
93 #define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@
94 #define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
95 #define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@
98 #define G_PLATFORM_WIN32
101 #define G_VA_COPY va_copy
102 #endif /* not _MSC_VER */
105 #define G_HAVE_INLINE 1
106 #else /* !__cplusplus */
108 #define G_HAVE_INLINE 1
109 #endif /* _MSC_VER */
110 #define G_HAVE___INLINE 1
112 #define G_HAVE___INLINE__ 1
113 #endif /* not _MSC_VER */
114 #endif /* !__cplusplus */
117 #define G_CAN_INLINE 1
118 #else /* !__cplusplus */
120 #define G_CAN_INLINE 1
126 # define G_HAVE_ISO_VARARGS 1
129 # define G_HAVE_ISO_VARARGS 1
132 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
133 * is passed ISO vararg support is turned off, and there is no work
134 * around to turn it on, so we unconditionally turn it off.
136 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
137 # undef G_HAVE_ISO_VARARGS
140 #define G_HAVE_GNUC_VARARGS 1
141 #endif /* not _MSC_VER */
142 #define G_HAVE_GROWING_STACK 0
144 #define G_GNUC_INTERNAL
146 #define G_THREADS_ENABLED
147 #define G_THREADS_IMPL_WIN32
148 typedef struct _GMutex* GStaticMutex;
149 #define G_STATIC_MUTEX_INIT NULL
150 #define g_static_mutex_get_mutex(mutex) \
151 (g_static_mutex_get_mutex_impl_shortcut (mutex))
152 /* This represents a system thread as used by the implementation. An
153 * alien implementaion, as loaded by g_thread_init can only count on
154 * "sizeof (gpointer)" bytes to store their info. We however need more
155 * for some of our native implementations. */
156 typedef union _GSystemThread GSystemThread;
165 #define GINT16_TO_LE(val) ((gint16) (val))
166 #define GUINT16_TO_LE(val) ((guint16) (val))
167 #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
168 #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
169 #define GINT32_TO_LE(val) ((gint32) (val))
170 #define GUINT32_TO_LE(val) ((guint32) (val))
171 #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
172 #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
173 #define GINT64_TO_LE(val) ((gint64) (val))
174 #define GUINT64_TO_LE(val) ((guint64) (val))
175 #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
176 #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
177 #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
178 #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
179 #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
180 #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
181 #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
182 #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
183 #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
184 #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
185 #define G_BYTE_ORDER G_LITTLE_ENDIAN
187 #define GLIB_SYSDEF_POLLIN =1
188 #define GLIB_SYSDEF_POLLOUT =4
189 #define GLIB_SYSDEF_POLLPRI =2
190 #define GLIB_SYSDEF_POLLHUP =16
191 #define GLIB_SYSDEF_POLLERR =8
192 #define GLIB_SYSDEF_POLLNVAL =32
194 #define G_MODULE_SUFFIX "dll"
200 #endif /* GLIBCONFIG_H */