Retract my change earlier today. Don't preset autoconf variables in a try
[platform/upstream/glib.git] / glibconfig.h.win32.in
1 /* glibconfig.h
2  *
3  * This is a generated file.  Please modify 'configure.in'
4  */
5
6 #ifndef __G_LIBCONFIG_H__
7 #define __G_LIBCONFIG_H__
8
9 #include <glib/gmacros.h>
10
11 #include <limits.h>
12 #include <float.h>
13
14 G_BEGIN_DECLS
15
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
29
30 typedef signed char gint8;
31 typedef unsigned char guint8;
32 typedef signed short gint16;
33 typedef unsigned short guint16;
34 #define G_GINT16_FORMAT "hi"
35 #define G_GUINT16_FORMAT "hu"
36 typedef signed int gint32;
37 typedef unsigned int guint32;
38 #define G_GINT32_FORMAT "i"
39 #define G_GUINT32_FORMAT "u"
40 #define G_HAVE_GINT64 1
41
42 #ifndef _MSC_VER
43 G_GNUC_EXTENSION typedef signed long long gint64;
44 G_GNUC_EXTENSION typedef unsigned long long guint64;
45 #else /* _MSC_VER */
46 typedef signed __int64 gint64;
47 typedef unsigned __int64 guint64;
48 #endif /* _MSC_VER */
49
50 #ifndef _MSC_VER
51 #define G_GINT64_CONSTANT(val)  (G_GNUC_EXTENSION (val##LL))
52 #else /* _MSC_VER */
53 #define G_GINT64_CONSTANT(val)  (val##i64)
54 #endif /* _MSC_VER */
55 #define G_GINT64_FORMAT "I64i"
56 #define G_GUINT64_FORMAT "I64u"
57
58 #define GLIB_SIZEOF_VOID_P 4
59 #define GLIB_SIZEOF_LONG   4
60
61 typedef gint32  gssize;
62 typedef guint32 gsize;
63
64 #define GPOINTER_TO_INT(p)      ((gint)   (p))
65 #define GPOINTER_TO_UINT(p)     ((guint)  (p))
66
67 #define GINT_TO_POINTER(i)      ((gpointer)  (i))
68 #define GUINT_TO_POINTER(u)     ((gpointer)  (u))
69
70 #ifdef NeXT /* @#%@! NeXTStep */
71 # define g_ATEXIT(proc) (!atexit (proc))
72 #else
73 # define g_ATEXIT(proc) (atexit (proc))
74 #endif
75
76 #define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
77
78 #define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@
79 #define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
80 #define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@
81
82 #define G_OS_WIN32
83 #define G_PLATFORM_WIN32
84
85
86
87 #ifdef  __cplusplus
88 #define G_HAVE_INLINE   1
89 #else   /* !__cplusplus */
90 #ifndef _MSC_VER
91 #define G_HAVE_INLINE 1
92 #else /* _MSC_VER */
93
94 #endif /* _MSC_VER */
95 #define G_HAVE___INLINE 1
96 #ifndef _MSC_VER
97 #define G_HAVE___INLINE__ 1
98 #endif /* not _MSC_VER */
99 #endif  /* !__cplusplus */
100
101 #ifndef _MSC_VER
102 #ifndef __cplusplus
103 # define G_HAVE_ISO_VARARGS 1
104 #endif
105
106 #define G_HAVE_GNUC_VARARGS 1
107 #endif /* not _MSC_VER */
108
109
110 #define G_THREADS_ENABLED
111 #define G_THREADS_IMPL_WIN32
112 typedef struct _GMutex* GStaticMutex;
113 #define G_STATIC_MUTEX_INIT NULL
114 #define g_static_mutex_get_mutex(mutex) (g_static_mutex_get_mutex_impl (mutex))
115 /* This represents a system thread as used by the implementation. An
116  * alien implementaion, as loaded by g_thread_init can only count on
117  * "sizeof (gpointer)" bytes to store their info. We however need more
118  * for some of our native implementations. */
119 typedef union _GSystemThread GSystemThread;
120 union _GSystemThread
121 {
122   char   data[4];
123   double dummy_double;
124   void  *dummy_pointer;
125   long   dummy_long;
126 };
127
128 #define GINT16_TO_LE(val)       ((gint16) (val))
129 #define GUINT16_TO_LE(val)      ((guint16) (val))
130 #define GINT16_TO_BE(val)       ((gint16) GUINT16_SWAP_LE_BE (val))
131 #define GUINT16_TO_BE(val)      (GUINT16_SWAP_LE_BE (val))
132 #define GINT32_TO_LE(val)       ((gint32) (val))
133 #define GUINT32_TO_LE(val)      ((guint32) (val))
134 #define GINT32_TO_BE(val)       ((gint32) GUINT32_SWAP_LE_BE (val))
135 #define GUINT32_TO_BE(val)      (GUINT32_SWAP_LE_BE (val))
136 #define GINT64_TO_LE(val)       ((gint64) (val))
137 #define GUINT64_TO_LE(val)      ((guint64) (val))
138 #define GINT64_TO_BE(val)       ((gint64) GUINT64_SWAP_LE_BE (val))
139 #define GUINT64_TO_BE(val)      (GUINT64_SWAP_LE_BE (val))
140 #define GLONG_TO_LE(val)        ((glong) GINT32_TO_LE (val))
141 #define GULONG_TO_LE(val)       ((gulong) GUINT32_TO_LE (val))
142 #define GLONG_TO_BE(val)        ((glong) GINT32_TO_BE (val))
143 #define GULONG_TO_BE(val)       ((gulong) GUINT32_TO_BE (val))
144 #define GINT_TO_LE(val)         ((gint) GINT32_TO_LE (val))
145 #define GUINT_TO_LE(val)        ((guint) GUINT32_TO_LE (val))
146 #define GINT_TO_BE(val)         ((gint) GINT32_TO_BE (val))
147 #define GUINT_TO_BE(val)        ((guint) GUINT32_TO_BE (val))
148 #define G_BYTE_ORDER G_LITTLE_ENDIAN
149
150 #define GLIB_SYSDEF_POLLIN =1
151 #define GLIB_SYSDEF_POLLOUT =4
152 #define GLIB_SYSDEF_POLLPRI =2
153 #define GLIB_SYSDEF_POLLERR =8
154 #define GLIB_SYSDEF_POLLHUP =16
155 #define GLIB_SYSDEF_POLLNVAL =32
156
157 #define G_MODULE_SUFFIX "dll"
158
159 G_END_DECLS
160
161 #endif /* GLIBCONFIG_H */