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