Fix distclean to remove some extra files. #60993, Ben Gertzfield
[platform/upstream/glib.git] / glibconfig.h.win32.in
1 /* glibconfig.h.win32
2  *
3  * This is a based on 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 #ifdef _MSC_VER
43 typedef __int64 gint64;
44 typedef unsigned __int64 guint64;
45 #define G_GINT64_CONSTANT(val)  (val##i64)
46 #elif __GNUC__
47 typedef long long gint64;
48 typedef unsigned long long guint64;
49 #define G_GINT64_CONSTANT(val)  (val##LL)
50 #endif
51 #define G_GINT64_FORMAT "I64i"
52 #define G_GUINT64_FORMAT "I64u"
53
54 #define GLIB_SIZEOF_VOID_P 4
55 #define GLIB_SIZEOF_LONG   4
56
57 typedef gint32  gssize;
58 typedef guint32 gsize;
59
60 #define GPOINTER_TO_INT(p)      ((gint)   (p))
61 #define GPOINTER_TO_UINT(p)     ((guint)  (p))
62
63 #define GINT_TO_POINTER(i)      ((gpointer)  (i))
64 #define GUINT_TO_POINTER(u)     ((gpointer)  (u))
65
66 #ifdef NeXT /* @#%@! NeXTStep */
67 # define g_ATEXIT(proc) (!atexit (proc))
68 #else
69 # define g_ATEXIT(proc) (atexit (proc))
70 #endif
71
72 #define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
73
74 #define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@
75 #define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
76 #define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@
77
78 #define G_OS_WIN32
79 #define G_PLATFORM_WIN32
80
81
82
83 #ifdef  __cplusplus
84 #define G_HAVE_INLINE   1
85 #else   /* !__cplusplus */
86
87 #define G_HAVE___INLINE 1
88 #endif  /* !__cplusplus */
89
90 #ifndef __cplusplus
91 # define G_HAVE_ISO_VARARGS 1
92 #endif
93
94 #ifdef __GNUC__
95 #define G_HAVE_GNUC_VARARGS 1
96 #endif
97
98
99 #define G_THREADS_ENABLED
100 #define G_THREADS_IMPL_WIN32
101 typedef struct _GMutex* GStaticMutex;
102 #define G_STATIC_MUTEX_INIT NULL
103 #define g_static_mutex_get_mutex(mutex) (g_static_mutex_get_mutex_impl (mutex))
104 /* This represents a system thread as used by the implementation. An
105  * alien implementaion, as loaded by g_thread_init can only count on
106  * "sizeof (gpointer)" bytes to store their info. We however need more
107  * for some of our native implementations. */
108 typedef union _GSystemThread GSystemThread;
109 union _GSystemThread
110 {
111   char   data[4];
112   double dummy_double;
113   void  *dummy_pointer;
114   long   dummy_long;
115 };
116
117 #define GINT16_TO_LE(val)       ((gint16) (val))
118 #define GUINT16_TO_LE(val)      ((guint16) (val))
119 #define GINT16_TO_BE(val)       ((gint16) GUINT16_SWAP_LE_BE (val))
120 #define GUINT16_TO_BE(val)      (GUINT16_SWAP_LE_BE (val))
121 #define GINT32_TO_LE(val)       ((gint32) (val))
122 #define GUINT32_TO_LE(val)      ((guint32) (val))
123 #define GINT32_TO_BE(val)       ((gint32) GUINT32_SWAP_LE_BE (val))
124 #define GUINT32_TO_BE(val)      (GUINT32_SWAP_LE_BE (val))
125 #define GINT64_TO_LE(val)       ((gint64) (val))
126 #define GUINT64_TO_LE(val)      ((guint64) (val))
127 #define GINT64_TO_BE(val)       ((gint64) GUINT64_SWAP_LE_BE (val))
128 #define GUINT64_TO_BE(val)      (GUINT64_SWAP_LE_BE (val))
129 #define GLONG_TO_LE(val)        ((glong) GINT32_TO_LE (val))
130 #define GULONG_TO_LE(val)       ((gulong) GUINT32_TO_LE (val))
131 #define GLONG_TO_BE(val)        ((glong) GINT32_TO_BE (val))
132 #define GULONG_TO_BE(val)       ((gulong) GUINT32_TO_BE (val))
133 #define GINT_TO_LE(val)         ((gint) GINT32_TO_LE (val))
134 #define GUINT_TO_LE(val)        ((guint) GUINT32_TO_LE (val))
135 #define GINT_TO_BE(val)         ((gint) GINT32_TO_BE (val))
136 #define GUINT_TO_BE(val)        ((guint) GUINT32_TO_BE (val))
137 #define G_BYTE_ORDER G_LITTLE_ENDIAN
138
139 #define GLIB_SYSDEF_POLLIN =1
140 #define GLIB_SYSDEF_POLLOUT =4
141 #define GLIB_SYSDEF_POLLPRI =2
142 #define GLIB_SYSDEF_POLLERR =8
143 #define GLIB_SYSDEF_POLLHUP =16
144 #define GLIB_SYSDEF_POLLNVAL =32
145
146 #define G_MODULE_SUFFIX "dll"
147
148 G_END_DECLS
149
150 #endif /* GLIBCONFIG_H */