Navit SVN

/work/compile/navit/src/navit/support/glib/glibconfig.h

00001 /* glibconfig.h.win32.in Merged from two versions generated by configure for gcc and MSVC.  */
00002 /* glibconfig.h
00003  *
00004  * This is a generated file.  Please modify 'configure.in'
00005  */
00006 
00007 #ifndef __G_LIBCONFIG_H__
00008 #define __G_LIBCONFIG_H__
00009 
00010 #include <glib/gmacros.h>
00011 
00012 #include <limits.h>
00013 #include <float.h>
00014 #include "config.h"
00015 
00016 G_BEGIN_DECLS
00017 
00018 #define G_MINFLOAT      FLT_MIN
00019 #define G_MAXFLOAT      FLT_MAX
00020 #define G_MINDOUBLE     DBL_MIN
00021 #define G_MAXDOUBLE     DBL_MAX
00022 #define G_MINSHORT      SHRT_MIN
00023 #define G_MAXSHORT      SHRT_MAX
00024 #define G_MAXUSHORT     USHRT_MAX
00025 #define G_MININT        INT_MIN
00026 #define G_MAXINT        INT_MAX
00027 #define G_MAXUINT       UINT_MAX
00028 #define G_MINLONG       LONG_MIN
00029 #define G_MAXLONG       LONG_MAX
00030 #define G_MAXULONG      ULONG_MAX
00031 
00032 typedef signed char gint8;
00033 typedef unsigned char guint8;
00034 typedef signed short gint16;
00035 typedef unsigned short guint16;
00036 #define G_GINT16_MODIFIER "h"
00037 #define G_GINT16_FORMAT "hi"
00038 #define G_GUINT16_FORMAT "hu"
00039 typedef signed int gint32;
00040 typedef unsigned int guint32;
00041 #define G_GINT32_MODIFIER ""
00042 #define G_GINT32_FORMAT "i"
00043 #define G_GUINT32_FORMAT "u"
00044 #define G_HAVE_GINT64 1          /* deprecated, always true */
00045 
00046 #ifndef _MSC_VER
00047 G_GNUC_EXTENSION typedef signed long long gint64;
00048 G_GNUC_EXTENSION typedef unsigned long long guint64;
00049 #else /* _MSC_VER */
00050 typedef signed __int64 gint64;
00051 typedef unsigned __int64 guint64;
00052 #endif /* _MSC_VER */
00053 
00054 #ifndef _MSC_VER
00055 #define G_GINT64_CONSTANT(val)  (G_GNUC_EXTENSION (val##LL))
00056 #else /* _MSC_VER */
00057 #define G_GINT64_CONSTANT(val)  (val##i64)
00058 #endif /* _MSC_VER */
00059 #ifndef _MSC_VER
00060 #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
00061 #else /* _MSC_VER */
00062 #define G_GUINT64_CONSTANT(val) (val##Ui64)
00063 #endif /* _MSC_VER */
00064 #define G_GINT64_MODIFIER "I64"
00065 #define G_GINT64_FORMAT "I64i"
00066 #define G_GUINT64_FORMAT "I64u"
00067 
00068 #if defined(_WIN64) || defined(_M_X64) || defined(_M_AMD64)
00069 
00070 #define GLIB_SIZEOF_VOID_P 8
00071 #define GLIB_SIZEOF_LONG   4
00072 #define GLIB_SIZEOF_SIZE_T 8
00073 
00074 typedef signed long long gssize;
00075 typedef unsigned long long gsize;
00076 #define G_GSIZE_MODIFIER "I64"
00077 #define G_GSSIZE_FORMAT "I64d"
00078 #define G_GSIZE_FORMAT "I64u"
00079 
00080 #define G_MAXSIZE       G_MAXUINT64
00081 #define G_MINSSIZE      G_MININT64
00082 #define G_MAXSSIZE      G_MAXINT64
00083 
00084 #else
00085 
00086 #define GLIB_SIZEOF_VOID_P 4
00087 #define GLIB_SIZEOF_LONG   4
00088 #define GLIB_SIZEOF_SIZE_T 4
00089 
00090 typedef signed int gssize;
00091 typedef unsigned int gsize;
00092 #define G_GSIZE_MODIFIER ""
00093 #define G_GSSIZE_FORMAT "i"
00094 #define G_GSIZE_FORMAT "u"
00095 
00096 #define G_MAXSIZE       G_MAXUINT
00097 #define G_MINSSIZE      G_MININT
00098 #define G_MAXSSIZE      G_MAXINT
00099 
00100 #endif
00101 
00102 typedef gint64 goffset;
00103 #define G_MINOFFSET     G_MININT64
00104 #define G_MAXOFFSET     G_MAXINT64
00105 
00106 #ifndef _WIN64
00107 
00108 #define GPOINTER_TO_INT(p)      ((gint)   (p))
00109 #define GPOINTER_TO_UINT(p)     ((guint)  (p))
00110 
00111 #define GINT_TO_POINTER(i)      ((gpointer)  (i))
00112 #define GUINT_TO_POINTER(u)     ((gpointer)  (u))
00113 
00114 typedef signed int gintptr;
00115 typedef unsigned int guintptr;
00116 
00117 #else
00118 
00119 #define GPOINTER_TO_INT(p)      ((gint)  (gint64) (p))
00120 #define GPOINTER_TO_UINT(p)     ((guint) (guint64) (p))
00121 
00122 #define GINT_TO_POINTER(i)      ((gpointer) (gint64) (i))
00123 #define GUINT_TO_POINTER(u)     ((gpointer) (guint64) (u))
00124 
00125 #ifndef _MSC_VER
00126 typedef signed long long gintptr;
00127 typedef unsigned long long guintptr;
00128 #else
00129 typedef signed __int64 gintptr;
00130 typedef unsigned __int64 guintptr;
00131 #endif
00132 
00133 #endif
00134 
00135 #ifdef NeXT /* @#%@! NeXTStep */
00136 # define g_ATEXIT(proc) (!atexit (proc))
00137 #else
00138 # define g_ATEXIT(proc) (atexit (proc))
00139 #endif
00140 
00141 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
00142 
00143 #define GLIB_MAJOR_VERSION 2
00144 #define GLIB_MINOR_VERSION 18
00145 #define GLIB_MICRO_VERSION 1
00146 
00147 #ifdef HAVE_API_WIN32_BASE
00148 #define G_OS_WIN32
00149 #define G_PLATFORM_WIN32
00150 #endif
00151 
00152 
00153 #ifndef _MSC_VER
00154 #define G_VA_COPY       va_copy
00155 #endif /* not _MSC_VER */
00156 
00157 #ifdef  __cplusplus
00158 #define G_HAVE_INLINE   1
00159 #else   /* !__cplusplus */
00160 #ifndef _MSC_VER
00161 #define G_HAVE_INLINE 1
00162 #endif /* _MSC_VER */
00163 #define G_HAVE___INLINE 1
00164 #if !defined(_MSC_VER) && !defined(__DMC__)
00165 #define G_HAVE___INLINE__ 1
00166 #endif /* !_MSC_VER and !__DMC__ */
00167 #endif  /* !__cplusplus */
00168 
00169 #define G_CAN_INLINE    1
00170 
00171 #ifndef _MSC_VER
00172 #define G_HAVE_ISO_VARARGS 1
00173 
00174 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
00175  * is passed ISO vararg support is turned off, and there is no work
00176  * around to turn it on, so we unconditionally turn it off.
00177  */
00178 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
00179 #  undef G_HAVE_ISO_VARARGS
00180 #endif
00181 
00182 #define G_HAVE_GNUC_VARARGS 1
00183 #else /* _MSC_VER */
00184 /* varargs macros available since msvc8 (vs2005) */
00185 #  if _MSC_VER >= 1400
00186 #    define G_HAVE_ISO_VARARGS 1
00187 #   endif
00188 #endif /* not _MSC_VER */
00189 #define G_HAVE_GROWING_STACK 0
00190 
00191 #define G_GNUC_INTERNAL
00192 
00193 #define G_THREADS_ENABLED
00194 #define G_THREADS_IMPL_WIN32
00195 typedef struct _GMutex* GStaticMutex;
00196 #define G_STATIC_MUTEX_INIT NULL
00197 #define g_static_mutex_get_mutex(mutex) \
00198   (g_static_mutex_get_mutex_impl_shortcut (mutex))
00199 /* This represents a system thread as used by the implementation. An
00200  * alien implementaion, as loaded by g_thread_init can only count on
00201  * "sizeof (gpointer)" bytes to store their info. We however need more
00202  * for some of our native implementations. */
00203 typedef union _GSystemThread GSystemThread;
00204 union _GSystemThread
00205 {
00206 #ifndef _WIN64
00207   char   data[4];
00208 #else
00209   char   data[8];
00210 #endif
00211   double dummy_double;
00212   void  *dummy_pointer;
00213   long   dummy_long;
00214 };
00215 
00216 #define GINT16_TO_LE(val)       ((gint16) (val))
00217 #define GUINT16_TO_LE(val)      ((guint16) (val))
00218 #define GINT16_TO_BE(val)       ((gint16) GUINT16_SWAP_LE_BE (val))
00219 #define GUINT16_TO_BE(val)      (GUINT16_SWAP_LE_BE (val))
00220 #define GINT32_TO_LE(val)       ((gint32) (val))
00221 #define GUINT32_TO_LE(val)      ((guint32) (val))
00222 #define GINT32_TO_BE(val)       ((gint32) GUINT32_SWAP_LE_BE (val))
00223 #define GUINT32_TO_BE(val)      (GUINT32_SWAP_LE_BE (val))
00224 #define GINT64_TO_LE(val)       ((gint64) (val))
00225 #define GUINT64_TO_LE(val)      ((guint64) (val))
00226 #define GINT64_TO_BE(val)       ((gint64) GUINT64_SWAP_LE_BE (val))
00227 #define GUINT64_TO_BE(val)      (GUINT64_SWAP_LE_BE (val))
00228 #define GLONG_TO_LE(val)        ((glong) GINT32_TO_LE (val))
00229 #define GULONG_TO_LE(val)       ((gulong) GUINT32_TO_LE (val))
00230 #define GLONG_TO_BE(val)        ((glong) GINT32_TO_BE (val))
00231 #define GULONG_TO_BE(val)       ((gulong) GUINT32_TO_BE (val))
00232 #define GINT_TO_LE(val)         ((gint) GINT32_TO_LE (val))
00233 #define GUINT_TO_LE(val)        ((guint) GUINT32_TO_LE (val))
00234 #define GINT_TO_BE(val)         ((gint) GINT32_TO_BE (val))
00235 #define GUINT_TO_BE(val)        ((guint) GUINT32_TO_BE (val))
00236 #define G_BYTE_ORDER G_LITTLE_ENDIAN
00237 
00238 #define GLIB_SYSDEF_POLLIN =1
00239 #define GLIB_SYSDEF_POLLOUT =4
00240 #define GLIB_SYSDEF_POLLPRI =2
00241 #define GLIB_SYSDEF_POLLHUP =16
00242 #define GLIB_SYSDEF_POLLERR =8
00243 #define GLIB_SYSDEF_POLLNVAL =32
00244 
00245 #define G_MODULE_SUFFIX "dll"
00246 
00247 #define HAVE_GOOD_PRINTF
00248 #define NO_SYS_SIGLIST_DECL
00249 #define GLIB_STATIC_COMPILATION
00250 #define G_DISABLE_CHECKS
00251 /* A GPid is an abstraction for a process "handle". It is *not* an
00252  * abstraction for a process identifier in general. GPid is used in
00253  * GLib only for descendant processes spawned with the g_spawn*
00254  * functions. On POSIX there is no "process handle" concept as such,
00255  * but on Windows a GPid is a handle to a process, a kind of pointer,
00256  * not a process identifier.
00257  */
00258 typedef void * GPid;
00259 
00260 G_END_DECLS
00261 
00262 #endif /* GLIBCONFIG_H */