sl@0: /* sl@0: * Portions Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: /* glibconfig.h sl@0: * sl@0: * This is a generated file. Please modify 'configure.in' sl@0: */ sl@0: sl@0: #ifndef __G_LIBCONFIG_H__ sl@0: #define __G_LIBCONFIG_H__ sl@0: sl@0: #include sl@0: sl@0: #include sl@0: #include sl@0: #ifdef __SYMBIAN32__ sl@0: #include sl@0: #endif //__SYMBIAN32__ sl@0: sl@0: #ifndef __SYMBIAN32__ sl@0: #define GLIB_HAVE_ALLOCA_H sl@0: #define GLIB_HAVE_SYS_POLL_H sl@0: #endif /* __SYMBIAN32__ */ sl@0: sl@0: G_BEGIN_DECLS sl@0: sl@0: #define G_MINFLOAT FLT_MIN sl@0: #define G_MAXFLOAT FLT_MAX sl@0: #define G_MINDOUBLE DBL_MIN sl@0: #define G_MAXDOUBLE DBL_MAX sl@0: #define G_MINSHORT SHRT_MIN sl@0: #define G_MAXSHORT SHRT_MAX sl@0: #define G_MAXUSHORT USHRT_MAX sl@0: #define G_MININT INT_MIN sl@0: #define G_MAXINT INT_MAX sl@0: #define G_MAXUINT UINT_MAX sl@0: #define G_MINLONG LONG_MIN sl@0: #define G_MAXLONG LONG_MAX sl@0: #define G_MAXULONG ULONG_MAX sl@0: sl@0: typedef signed char gint8; sl@0: typedef unsigned char guint8; sl@0: typedef signed short gint16; sl@0: typedef unsigned short guint16; sl@0: #define G_GINT16_MODIFIER "h" sl@0: #define G_GINT16_FORMAT "hi" sl@0: #define G_GUINT16_FORMAT "hu" sl@0: typedef signed int gint32; sl@0: typedef unsigned int guint32; sl@0: #define G_GINT32_MODIFIER "" sl@0: #define G_GINT32_FORMAT "i" sl@0: #define G_GUINT32_FORMAT "u" sl@0: #define G_HAVE_GINT64 1 /* deprecated, always true */ sl@0: sl@0: sl@0: G_GNUC_EXTENSION typedef signed long long gint64; sl@0: G_GNUC_EXTENSION typedef unsigned long long guint64; sl@0: sl@0: #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL)) sl@0: #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL)) sl@0: #define G_GINT64_MODIFIER "ll" sl@0: #define G_GINT64_FORMAT "lli" sl@0: #define G_GUINT64_FORMAT "llu" sl@0: sl@0: #define GLIB_SIZEOF_VOID_P 4 sl@0: #define GLIB_SIZEOF_LONG 4 sl@0: #define GLIB_SIZEOF_SIZE_T 4 sl@0: sl@0: typedef signed int gssize; sl@0: typedef unsigned int gsize; sl@0: #define G_GSIZE_MODIFIER "" sl@0: #define G_GSSIZE_FORMAT "i" sl@0: #define G_GSIZE_FORMAT "u" sl@0: sl@0: #define G_MAXSIZE G_MAXUINT sl@0: #define G_MINSSIZE G_MININT sl@0: #define G_MAXSSIZE G_MAXINT sl@0: sl@0: sl@0: typedef gint64 goffset; sl@0: #define G_MINOFFSET G_MININT64 sl@0: #define G_MAXOFFSET G_MAXINT64 sl@0: sl@0: #define GPOINTER_TO_INT(p) ((gint) (p)) sl@0: #define GPOINTER_TO_UINT(p) ((guint) (p)) sl@0: sl@0: #define GINT_TO_POINTER(i) ((gpointer) (i)) sl@0: #define GUINT_TO_POINTER(u) ((gpointer) (u)) sl@0: sl@0: typedef signed int gintptr; sl@0: typedef unsigned int guintptr; sl@0: sl@0: #ifdef NeXT /* @#%@! NeXTStep */ sl@0: # define g_ATEXIT(proc) (!atexit (proc)) sl@0: #else sl@0: # define g_ATEXIT(proc) (atexit (proc)) sl@0: #endif sl@0: sl@0: #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END sl@0: #ifdef __SYMBIAN32__ sl@0: #ifndef GLIB_MAJOR_VERSION sl@0: #define GLIB_MAJOR_VERSION 2 sl@0: #endif sl@0: #ifndef GLIB_MINOR_VERSION sl@0: #define GLIB_MINOR_VERSION 20 sl@0: #endif sl@0: #ifndef GLIB_MICRO_VERSION sl@0: #define GLIB_MICRO_VERSION 4 sl@0: #endif sl@0: #endif//__SYMBIAN32__ sl@0: sl@0: #ifndef __SYMBIAN32__ sl@0: #define G_OS_UNIX sl@0: #endif//__SYMBIAN32__ sl@0: sl@0: #define G_VA_COPY va_copy sl@0: sl@0: #ifdef __cplusplus sl@0: #define G_HAVE_INLINE 1 sl@0: #else /* !__cplusplus */ sl@0: #ifndef __SYMBIAN32__ sl@0: #define G_HAVE_INLINE 1 sl@0: #define G_HAVE___INLINE__ 1 sl@0: #else//__SYMBIAN32__ sl@0: #define G_HAVE___INLINE 1 sl@0: #endif//__SYMBIAN32__ sl@0: #endif /* !__cplusplus */ sl@0: sl@0: #ifdef __cplusplus sl@0: #define G_CAN_INLINE 1 sl@0: #else /* !__cplusplus */ sl@0: #ifdef __SYMBIAN32__ sl@0: #define G_CAN_INLINE 1 sl@0: #endif//__SYMBIAN32__ sl@0: #endif sl@0: sl@0: #ifndef __SYMBIAN32__ sl@0: #ifndef __cplusplus sl@0: # define G_HAVE_ISO_VARARGS 1 sl@0: #endif sl@0: #ifdef __cplusplus sl@0: # define G_HAVE_ISO_VARARGS 1 sl@0: #endif sl@0: sl@0: /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi sl@0: * is passed ISO vararg support is turned off, and there is no work sl@0: * around to turn it on, so we unconditionally turn it off. sl@0: */ sl@0: #if __GNUC__ == 2 && __GNUC_MINOR__ == 95 sl@0: # undef G_HAVE_ISO_VARARGS sl@0: #endif sl@0: sl@0: #define G_HAVE_GNUC_VARARGS 1 sl@0: #endif /* __SYMBIAN32__ */ sl@0: sl@0: #define G_HAVE_GROWING_STACK 0 sl@0: sl@0: #define G_GNUC_INTERNAL sl@0: sl@0: #define G_THREADS_ENABLED sl@0: #define G_THREADS_IMPL_POSIX sl@0: typedef struct _GStaticMutex GStaticMutex; sl@0: struct _GStaticMutex sl@0: { sl@0: struct _GMutex *runtime_mutex; sl@0: #ifndef __SYMBIAN32__ sl@0: union { sl@0: char pad[24]; sl@0: double dummy_double; sl@0: void *dummy_pointer; sl@0: long dummy_long; sl@0: } static_mutex; sl@0: #else //__SYMBIAN32__ sl@0: pthread_mutex_t static_mutex; sl@0: #endif //__SYMBIAN32__ sl@0: }; sl@0: sl@0: #ifndef __SYMBIAN32__ sl@0: #define G_STATIC_MUTEX_INIT { NULL, { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } } sl@0: #else sl@0: #define G_STATIC_MUTEX_INIT { NULL, PTHREAD_MUTEX_INITIALIZER} sl@0: #endif //__SYMBIAN32__ sl@0: sl@0: #ifndef __SYMBIAN32__ sl@0: #define g_static_mutex_get_mutex(mutex) \ sl@0: (g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : \ sl@0: g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex))) sl@0: #else /* !__SYMBIAN32__ */ sl@0: #define g_static_mutex_get_mutex(mutex) \ sl@0: (g_thread_use_default_impl ? ((GMutex*) &((mutex)->static_mutex)) : \ sl@0: g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex))) sl@0: #endif /* __SYMBIAN32__ */ sl@0: sl@0: /* This represents a system thread as used by the implementation. An sl@0: * alien implementaion, as loaded by g_thread_init can only count on sl@0: * "sizeof (gpointer)" bytes to store their info. We however need more sl@0: * for some of our native implementations. */ sl@0: typedef union _GSystemThread GSystemThread; sl@0: union _GSystemThread sl@0: { sl@0: char data[4]; sl@0: double dummy_double; sl@0: void *dummy_pointer; sl@0: long dummy_long; sl@0: }; sl@0: sl@0: #define GINT16_TO_LE(val) ((gint16) (val)) sl@0: #define GUINT16_TO_LE(val) ((guint16) (val)) sl@0: #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val)) sl@0: #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val)) sl@0: #define GINT32_TO_LE(val) ((gint32) (val)) sl@0: #define GUINT32_TO_LE(val) ((guint32) (val)) sl@0: #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val)) sl@0: #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val)) sl@0: #define GINT64_TO_LE(val) ((gint64) (val)) sl@0: #define GUINT64_TO_LE(val) ((guint64) (val)) sl@0: #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val)) sl@0: #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val)) sl@0: #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val)) sl@0: #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val)) sl@0: #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val)) sl@0: #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val)) sl@0: #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val)) sl@0: #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val)) sl@0: #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val)) sl@0: #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val)) sl@0: #define G_BYTE_ORDER G_LITTLE_ENDIAN sl@0: sl@0: #define GLIB_SYSDEF_POLLIN =1 sl@0: #define GLIB_SYSDEF_POLLOUT =4 sl@0: #define GLIB_SYSDEF_POLLPRI =2 sl@0: #define GLIB_SYSDEF_POLLHUP =16 sl@0: #define GLIB_SYSDEF_POLLERR =8 sl@0: #define GLIB_SYSDEF_POLLNVAL =32 sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: #define G_MODULE_SUFFIX "dll" sl@0: #else sl@0: #define G_MODULE_SUFFIX "so" sl@0: #endif /* __SYMBIAN32__ */ sl@0: sl@0: /* A GPid is an abstraction for a process "handle". It is *not* an sl@0: * abstraction for a process identifier in general. GPid is used in sl@0: * GLib only for descendant processes spawned with the g_spawn* sl@0: * functions. On POSIX there is no "process handle" concept as such, sl@0: * but on Windows a GPid is a handle to a process, a kind of pointer, sl@0: * not a process identifier. sl@0: */ sl@0: typedef int GPid; sl@0: sl@0: #define GLIB_SYSDEF_AF_INET 2 sl@0: #define GLIB_SYSDEF_AF_INET6 23 sl@0: sl@0: G_END_DECLS sl@0: sl@0: #endif /* GLIBCONFIG_H */