updated [and finally fixed my script to produce ready to go de-in(ed)
[platform/upstream/glib.git] / glibconfig.h.win32.in
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 #ifndef __GNUC__
12 #define G_GNUC_INTERNAL /* wont have that */
13 #endif
14 #include <limits.h>
15 #include <float.h>
16
17 G_BEGIN_DECLS
18
19 #define G_MINFLOAT      FLT_MIN
20 #define G_MAXFLOAT      FLT_MAX
21 #define G_MINDOUBLE     DBL_MIN
22 #define G_MAXDOUBLE     DBL_MAX
23 #define G_MINSHORT      SHRT_MIN
24 #define G_MAXSHORT      SHRT_MAX
25 #define G_MAXUSHORT     USHRT_MAX
26 #define G_MININT        INT_MIN
27 #define G_MAXINT        INT_MAX
28 #define G_MAXUINT       UINT_MAX
29 #define G_MINLONG       LONG_MIN
30 #define G_MAXLONG       LONG_MAX
31 #define G_MAXULONG      ULONG_MAX
32
33 typedef signed char gint8;
34 typedef unsigned char guint8;
35 typedef signed short gint16;
36 typedef unsigned short guint16;
37 #define G_GINT16_MODIFIER "h"
38 #define G_GINT16_FORMAT "hi"
39 #define G_GUINT16_FORMAT "hu"
40 typedef signed int gint32;
41 typedef unsigned int guint32;
42 #define G_GINT32_MODIFIER ""
43 #define G_GINT32_FORMAT "i"
44 #define G_GUINT32_FORMAT "u"
45 #define G_HAVE_GINT64 1          /* deprecated, always true */
46
47 #ifndef _MSC_VER
48 G_GNUC_EXTENSION typedef signed long long gint64;
49 G_GNUC_EXTENSION typedef unsigned long long guint64;
50 #else /* _MSC_VER */
51 typedef signed __int64 gint64;
52 typedef unsigned __int64 guint64;
53 #endif /* _MSC_VER */
54
55 #ifndef _MSC_VER
56 #define G_GINT64_CONSTANT(val)  (G_GNUC_EXTENSION (val##LL))
57 #else /* _MSC_VER */
58 #define G_GINT64_CONSTANT(val)  (val##i64)
59 #endif /* _MSC_VER */
60 #define G_GINT64_MODIFIER "I64"
61 #define G_GINT64_FORMAT "I64i"
62 #define G_GUINT64_FORMAT "I64u"
63
64 #define GLIB_SIZEOF_VOID_P 4
65 #define GLIB_SIZEOF_LONG   4
66 #define GLIB_SIZEOF_SIZE_T 4
67
68 typedef signed int gssize;
69 typedef unsigned int gsize;
70 #define G_GSIZE_MODIFIER ""
71 #define G_GSSIZE_FORMAT "i"
72 #define G_GSIZE_FORMAT "u"
73
74 #define G_MAXSIZE       G_MAXUINT
75
76 #define GPOINTER_TO_INT(p)      ((gint)   (p))
77 #define GPOINTER_TO_UINT(p)     ((guint)  (p))
78
79 #define GINT_TO_POINTER(i)      ((gpointer)  (i))
80 #define GUINT_TO_POINTER(u)     ((gpointer)  (u))
81
82 #ifdef NeXT /* @#%@! NeXTStep */
83 # define g_ATEXIT(proc) (!atexit (proc))
84 #else
85 # define g_ATEXIT(proc) (atexit (proc))
86 #endif
87
88 #define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
89
90 #define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@
91 #define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
92 #define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@
93
94 #define G_OS_WIN32
95 #define G_PLATFORM_WIN32
96
97 #ifndef _MSC_VER
98 #define G_VA_COPY       va_copy
99 #endif /* not _MSC_VER */
100
101 #ifdef  __cplusplus
102 #define G_HAVE_INLINE   1
103 #else   /* !__cplusplus */
104 #ifndef _MSC_VER
105 #define G_HAVE_INLINE 1
106 #else /* _MSC_VER */
107
108 #endif /* _MSC_VER */
109 #define G_HAVE___INLINE 1
110 #ifndef _MSC_VER
111 #define G_HAVE___INLINE__ 1
112 #endif /* not _MSC_VER */
113 #endif  /* !__cplusplus */
114
115 #ifndef _MSC_VER
116 #ifndef __cplusplus
117 # define G_HAVE_ISO_VARARGS 1
118 #endif
119 #ifdef __cplusplus
120 # define G_HAVE_ISO_VARARGS 1
121 #endif
122
123 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
124  * is passed ISO vararg support is turned off, and there is no work
125  * around to turn it on, so we unconditionally turn it off.
126  */
127 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
128 #  undef G_HAVE_ISO_VARARGS
129 #endif
130
131 #define G_HAVE_GNUC_VARARGS 1
132 #endif /* not _MSC_VER */
133 #define G_HAVE_GROWING_STACK 0
134
135
136 #define G_THREADS_ENABLED
137 #define G_THREADS_IMPL_WIN32
138 typedef struct _GMutex* GStaticMutex;
139 #define G_STATIC_MUTEX_INIT NULL
140 #define g_static_mutex_get_mutex(mutex) \
141   (g_static_mutex_get_mutex_impl_shortcut (mutex))
142 /* This represents a system thread as used by the implementation. An
143  * alien implementaion, as loaded by g_thread_init can only count on
144  * "sizeof (gpointer)" bytes to store their info. We however need more
145  * for some of our native implementations. */
146 typedef union _GSystemThread GSystemThread;
147 union _GSystemThread
148 {
149   char   data[4];
150   double dummy_double;
151   void  *dummy_pointer;
152   long   dummy_long;
153 };
154
155 #define GINT16_TO_LE(val)       ((gint16) (val))
156 #define GUINT16_TO_LE(val)      ((guint16) (val))
157 #define GINT16_TO_BE(val)       ((gint16) GUINT16_SWAP_LE_BE (val))
158 #define GUINT16_TO_BE(val)      (GUINT16_SWAP_LE_BE (val))
159 #define GINT32_TO_LE(val)       ((gint32) (val))
160 #define GUINT32_TO_LE(val)      ((guint32) (val))
161 #define GINT32_TO_BE(val)       ((gint32) GUINT32_SWAP_LE_BE (val))
162 #define GUINT32_TO_BE(val)      (GUINT32_SWAP_LE_BE (val))
163 #define GINT64_TO_LE(val)       ((gint64) (val))
164 #define GUINT64_TO_LE(val)      ((guint64) (val))
165 #define GINT64_TO_BE(val)       ((gint64) GUINT64_SWAP_LE_BE (val))
166 #define GUINT64_TO_BE(val)      (GUINT64_SWAP_LE_BE (val))
167 #define GLONG_TO_LE(val)        ((glong) GINT32_TO_LE (val))
168 #define GULONG_TO_LE(val)       ((gulong) GUINT32_TO_LE (val))
169 #define GLONG_TO_BE(val)        ((glong) GINT32_TO_BE (val))
170 #define GULONG_TO_BE(val)       ((gulong) GUINT32_TO_BE (val))
171 #define GINT_TO_LE(val)         ((gint) GINT32_TO_LE (val))
172 #define GUINT_TO_LE(val)        ((guint) GUINT32_TO_LE (val))
173 #define GINT_TO_BE(val)         ((gint) GINT32_TO_BE (val))
174 #define GUINT_TO_BE(val)        ((guint) GUINT32_TO_BE (val))
175 #define G_BYTE_ORDER G_LITTLE_ENDIAN
176
177 #define GLIB_SYSDEF_POLLIN =1
178 #define GLIB_SYSDEF_POLLOUT =4
179 #define GLIB_SYSDEF_POLLPRI =2
180 #define GLIB_SYSDEF_POLLHUP =16
181 #define GLIB_SYSDEF_POLLERR =8
182 #define GLIB_SYSDEF_POLLNVAL =32
183
184 #define G_MODULE_SUFFIX "dll"
185
186 typedef void * GPid;
187
188 G_END_DECLS
189
190 #endif /* GLIBCONFIG_H */