source: trunk/third/glib2/glibconfig.h.win32 @ 21369

Revision 21369, 5.1 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21368, which included commits to RCS files with non-trunk default branches.
Line 
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
15G_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
31typedef signed char gint8;
32typedef unsigned char guint8;
33typedef signed short gint16;
34typedef unsigned short guint16;
35#define G_GINT16_MODIFIER "h"
36#define G_GINT16_FORMAT "hi"
37#define G_GUINT16_FORMAT "hu"
38typedef signed int gint32;
39typedef unsigned int guint32;
40#define G_GINT32_MODIFIER ""
41#define G_GINT32_FORMAT "i"
42#define G_GUINT32_FORMAT "u"
43#define G_HAVE_GINT64 1          /* deprecated, always true */
44
45#ifndef _MSC_VER
46G_GNUC_EXTENSION typedef signed long long gint64;
47G_GNUC_EXTENSION typedef unsigned long long guint64;
48#else /* _MSC_VER */
49typedef signed __int64 gint64;
50typedef unsigned __int64 guint64;
51#endif /* _MSC_VER */
52
53#ifndef _MSC_VER
54#define G_GINT64_CONSTANT(val)  (G_GNUC_EXTENSION (val##LL))
55#else /* _MSC_VER */
56#define G_GINT64_CONSTANT(val)  (val##i64)
57#endif /* _MSC_VER */
58#define G_GINT64_MODIFIER "I64"
59#define G_GINT64_FORMAT "I64i"
60#define G_GUINT64_FORMAT "I64u"
61
62#define GLIB_SIZEOF_VOID_P 4
63#define GLIB_SIZEOF_LONG   4
64#define GLIB_SIZEOF_SIZE_T 4
65
66typedef signed int gssize;
67typedef unsigned int gsize;
68#define G_GSIZE_MODIFIER ""
69#define G_GSSIZE_FORMAT "i"
70#define G_GSIZE_FORMAT "u"
71
72#define G_MAXSIZE       G_MAXUINT
73
74#define GPOINTER_TO_INT(p)      ((gint)   (p))
75#define GPOINTER_TO_UINT(p)     ((guint)  (p))
76
77#define GINT_TO_POINTER(i)      ((gpointer)  (i))
78#define GUINT_TO_POINTER(u)     ((gpointer)  (u))
79
80#ifdef NeXT /* @#%@! NeXTStep */
81# define g_ATEXIT(proc) (!atexit (proc))
82#else
83# define g_ATEXIT(proc) (atexit (proc))
84#endif
85
86#define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
87
88#define GLIB_MAJOR_VERSION 2
89#define GLIB_MINOR_VERSION 4
90#define GLIB_MICRO_VERSION 8
91
92#define G_OS_WIN32
93#define G_PLATFORM_WIN32
94
95#ifndef _MSC_VER
96#define G_VA_COPY       va_copy
97#endif /* not _MSC_VER */
98
99#ifdef  __cplusplus
100#define G_HAVE_INLINE   1
101#else   /* !__cplusplus */
102#ifndef _MSC_VER
103#define G_HAVE_INLINE 1
104#else /* _MSC_VER */
105
106#endif /* _MSC_VER */
107#define G_HAVE___INLINE 1
108#ifndef _MSC_VER
109#define G_HAVE___INLINE__ 1
110#endif /* not _MSC_VER */
111#endif  /* !__cplusplus */
112
113#ifndef _MSC_VER
114#ifndef __cplusplus
115# define G_HAVE_ISO_VARARGS 1
116#endif
117#ifdef __cplusplus
118# define G_HAVE_ISO_VARARGS 1
119#endif
120
121/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
122 * is passed ISO vararg support is turned off, and there is no work
123 * around to turn it on, so we unconditionally turn it off.
124 */
125#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
126#  undef G_HAVE_ISO_VARARGS
127#endif
128
129#define G_HAVE_GNUC_VARARGS 1
130#endif /* not _MSC_VER */
131#define G_HAVE_GROWING_STACK 0
132
133
134#define G_THREADS_ENABLED
135#define G_THREADS_IMPL_WIN32
136typedef struct _GMutex* GStaticMutex;
137#define G_STATIC_MUTEX_INIT NULL
138#define g_static_mutex_get_mutex(mutex) \
139  (g_static_mutex_get_mutex_impl_shortcut (mutex))
140/* This represents a system thread as used by the implementation. An
141 * alien implementaion, as loaded by g_thread_init can only count on
142 * "sizeof (gpointer)" bytes to store their info. We however need more
143 * for some of our native implementations. */
144typedef union _GSystemThread GSystemThread;
145union _GSystemThread
146{
147  char   data[4];
148  double dummy_double;
149  void  *dummy_pointer;
150  long   dummy_long;
151};
152
153#define GINT16_TO_LE(val)       ((gint16) (val))
154#define GUINT16_TO_LE(val)      ((guint16) (val))
155#define GINT16_TO_BE(val)       ((gint16) GUINT16_SWAP_LE_BE (val))
156#define GUINT16_TO_BE(val)      (GUINT16_SWAP_LE_BE (val))
157#define GINT32_TO_LE(val)       ((gint32) (val))
158#define GUINT32_TO_LE(val)      ((guint32) (val))
159#define GINT32_TO_BE(val)       ((gint32) GUINT32_SWAP_LE_BE (val))
160#define GUINT32_TO_BE(val)      (GUINT32_SWAP_LE_BE (val))
161#define GINT64_TO_LE(val)       ((gint64) (val))
162#define GUINT64_TO_LE(val)      ((guint64) (val))
163#define GINT64_TO_BE(val)       ((gint64) GUINT64_SWAP_LE_BE (val))
164#define GUINT64_TO_BE(val)      (GUINT64_SWAP_LE_BE (val))
165#define GLONG_TO_LE(val)        ((glong) GINT32_TO_LE (val))
166#define GULONG_TO_LE(val)       ((gulong) GUINT32_TO_LE (val))
167#define GLONG_TO_BE(val)        ((glong) GINT32_TO_BE (val))
168#define GULONG_TO_BE(val)       ((gulong) GUINT32_TO_BE (val))
169#define GINT_TO_LE(val)         ((gint) GINT32_TO_LE (val))
170#define GUINT_TO_LE(val)        ((guint) GUINT32_TO_LE (val))
171#define GINT_TO_BE(val)         ((gint) GINT32_TO_BE (val))
172#define GUINT_TO_BE(val)        ((guint) GUINT32_TO_BE (val))
173#define G_BYTE_ORDER G_LITTLE_ENDIAN
174
175#define GLIB_SYSDEF_POLLIN =1
176#define GLIB_SYSDEF_POLLOUT =4
177#define GLIB_SYSDEF_POLLPRI =2
178#define GLIB_SYSDEF_POLLHUP =16
179#define GLIB_SYSDEF_POLLERR =8
180#define GLIB_SYSDEF_POLLNVAL =32
181
182#define G_MODULE_SUFFIX "dll"
183
184typedef void * GPid;
185
186G_END_DECLS
187
188#endif /* GLIBCONFIG_H */
Note: See TracBrowser for help on using the repository browser.