Solaris has a broken strftime that produced garbage output for the test
[platform/upstream/glib.git] / glibconfig.h.win32
1 /* glibconfig.h.win32 */
2 /* Handcrafted for Microsoft C. */
3
4 #ifndef GLIBCONFIG_H
5 #define GLIBCONFIG_H
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif /* __cplusplus */
10
11 #ifdef _MSC_VER
12 /* Make MSVC more pedantic, this is a recommended pragma list
13  * from _Win32_Programming_ by Rector and Newcomer.
14  */
15 #pragma warning(error:4002)
16 #pragma warning(error:4003)
17 #pragma warning(1:4010)
18 #pragma warning(error:4013)
19 #pragma warning(1:4016)
20 #pragma warning(error:4020)
21 #pragma warning(error:4021)
22 #pragma warning(error:4027)
23 #pragma warning(error:4029)
24 #pragma warning(error:4033)
25 #pragma warning(error:4035)
26 #pragma warning(error:4045)
27 #pragma warning(error:4047)
28 #pragma warning(error:4049)
29 #pragma warning(error:4053)
30 #pragma warning(error:4071)
31 #pragma warning(disable:4101)
32 #pragma warning(error:4150)
33
34 #pragma warning(disable:4244)   /* No possible loss of data warnings, please */
35 #endif /* _MSC_VER */
36
37 #include <limits.h>
38 #include <float.h>
39
40 #define G_MINFLOAT FLT_MIN
41 #define G_MAXFLOAT FLT_MAX
42 #define G_MINDOUBLE DBL_MIN
43 #define G_MAXDOUBLE DBL_MAX
44 #define G_MINSHORT SHRT_MIN
45 #define G_MAXSHORT SHRT_MAX
46 #define G_MININT INT_MIN
47 #define G_MAXINT INT_MAX
48 #define G_MINLONG LONG_MIN
49 #define G_MAXLONG LONG_MAX
50
51 typedef signed char gint8;
52 typedef unsigned char guint8;
53 typedef signed short gint16;
54 typedef unsigned short guint16;
55 typedef signed int gint32;
56 typedef unsigned int guint32;
57 #define G_HAVE_GINT64 1
58
59 typedef __int64 gint64;
60 typedef unsigned __int64 guint64;
61
62 #define G_GINT64_CONSTANT(val)  (val)
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 #define g_ATEXIT(proc)  (atexit (proc))
71
72 #define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
73
74 #define GLIB_MAJOR_VERSION 1
75 #define GLIB_MINOR_VERSION 1
76 #define GLIB_MICRO_VERSION 4
77
78 #define G_COMPILED_WITH_DEBUGGING "minimum"
79
80 #define G_HAVE___INLINE 1
81
82 #define G_BYTE_ORDER G_LITTLE_ENDIAN
83
84 #define GINT16_TO_LE(val)       ((gint16) (val))
85 #define GUINT16_TO_LE(val)      ((guint16) (val))
86 #define GINT16_TO_BE(val)       ((gint16) GUINT16_SWAP_LE_BE (val))
87 #define GUINT16_TO_BE(val)      (GUINT16_SWAP_LE_BE (val))
88
89 #define GINT32_TO_LE(val)       ((gint32) (val))
90 #define GUINT32_TO_LE(val)      ((guint32) (val))
91 #define GINT32_TO_BE(val)       ((gint32) GUINT32_SWAP_LE_BE (val))
92 #define GUINT32_TO_BE(val)      (GUINT32_SWAP_LE_BE (val))
93
94 #define GINT64_TO_LE(val)       ((gint64) (val))
95 #define GUINT64_TO_LE(val)      ((guint64) (val))
96 #define GINT64_TO_BE(val)       ((gint64) GUINT64_SWAP_LE_BE (val))
97 #define GUINT64_TO_BE(val)      (GUINT64_SWAP_LE_BE (val))
98
99 #define GLONG_TO_LE(val)        ((glong) GINT32_TO_LE (val))
100 #define GULONG_TO_LE(val)       ((gulong) GUINT32_TO_LE (val))
101 #define GLONG_TO_BE(val)        ((glong) GINT32_TO_BE (val))
102 #define GULONG_TO_BE(val)       ((gulong) GUINT32_TO_BE (val))
103
104 #define GINT_TO_LE(val)         ((gint) GINT32_TO_LE (val))
105 #define GUINT_TO_LE(val)        ((guint) GUINT32_TO_LE (val))
106 #define GINT_TO_BE(val)         ((gint) GINT32_TO_BE (val))
107 #define GUINT_TO_BE(val)        ((guint) GUINT32_TO_BE (val))
108
109 #define G_HAVE_WCHAR_H 1
110 #define G_HAVE_WCTYPE_H 1
111
112 /* Define if this is Win32, possibly using the GNU-Win32 emulation layer. */
113 #define WIN32 1
114
115 /* Define if this is Win32 without GNU-Win32.  */
116 #define NATIVE_WIN32 1
117
118 #ifdef __cplusplus
119 }
120 #endif /* __cplusplus */
121
122 #endif /* GLIBCONFIG_H */