1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/glib/build/symbian/inc/glibconfig.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,265 @@
1.4 +/*
1.5 +* Portions Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* Contributors:
1.8 +*
1.9 +* Description:
1.10 +*
1.11 +*/
1.12 +
1.13 +
1.14 +
1.15 +
1.16 +/* glibconfig.h
1.17 + *
1.18 + * This is a generated file. Please modify 'configure.in'
1.19 + */
1.20 +
1.21 +#ifndef __G_LIBCONFIG_H__
1.22 +#define __G_LIBCONFIG_H__
1.23 +
1.24 +#include <glib/gmacros.h>
1.25 +
1.26 +#include <limits.h>
1.27 +#include <float.h>
1.28 +#ifdef __SYMBIAN32__
1.29 +#include <pthread.h>
1.30 +#endif //__SYMBIAN32__
1.31 +
1.32 +#ifndef __SYMBIAN32__
1.33 +#define GLIB_HAVE_ALLOCA_H
1.34 +#define GLIB_HAVE_SYS_POLL_H
1.35 +#endif /* __SYMBIAN32__ */
1.36 +
1.37 +G_BEGIN_DECLS
1.38 +
1.39 +#define G_MINFLOAT FLT_MIN
1.40 +#define G_MAXFLOAT FLT_MAX
1.41 +#define G_MINDOUBLE DBL_MIN
1.42 +#define G_MAXDOUBLE DBL_MAX
1.43 +#define G_MINSHORT SHRT_MIN
1.44 +#define G_MAXSHORT SHRT_MAX
1.45 +#define G_MAXUSHORT USHRT_MAX
1.46 +#define G_MININT INT_MIN
1.47 +#define G_MAXINT INT_MAX
1.48 +#define G_MAXUINT UINT_MAX
1.49 +#define G_MINLONG LONG_MIN
1.50 +#define G_MAXLONG LONG_MAX
1.51 +#define G_MAXULONG ULONG_MAX
1.52 +
1.53 +typedef signed char gint8;
1.54 +typedef unsigned char guint8;
1.55 +typedef signed short gint16;
1.56 +typedef unsigned short guint16;
1.57 +#define G_GINT16_MODIFIER "h"
1.58 +#define G_GINT16_FORMAT "hi"
1.59 +#define G_GUINT16_FORMAT "hu"
1.60 +typedef signed int gint32;
1.61 +typedef unsigned int guint32;
1.62 +#define G_GINT32_MODIFIER ""
1.63 +#define G_GINT32_FORMAT "i"
1.64 +#define G_GUINT32_FORMAT "u"
1.65 +#define G_HAVE_GINT64 1 /* deprecated, always true */
1.66 +
1.67 +
1.68 +G_GNUC_EXTENSION typedef signed long long gint64;
1.69 +G_GNUC_EXTENSION typedef unsigned long long guint64;
1.70 +
1.71 +#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
1.72 +#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
1.73 +#define G_GINT64_MODIFIER "ll"
1.74 +#define G_GINT64_FORMAT "lli"
1.75 +#define G_GUINT64_FORMAT "llu"
1.76 +
1.77 +#define GLIB_SIZEOF_VOID_P 4
1.78 +#define GLIB_SIZEOF_LONG 4
1.79 +#define GLIB_SIZEOF_SIZE_T 4
1.80 +
1.81 +typedef signed int gssize;
1.82 +typedef unsigned int gsize;
1.83 +#define G_GSIZE_MODIFIER ""
1.84 +#define G_GSSIZE_FORMAT "i"
1.85 +#define G_GSIZE_FORMAT "u"
1.86 +
1.87 +#define G_MAXSIZE G_MAXUINT
1.88 +#define G_MINSSIZE G_MININT
1.89 +#define G_MAXSSIZE G_MAXINT
1.90 +
1.91 +
1.92 +typedef gint64 goffset;
1.93 +#define G_MINOFFSET G_MININT64
1.94 +#define G_MAXOFFSET G_MAXINT64
1.95 +
1.96 +#define GPOINTER_TO_INT(p) ((gint) (p))
1.97 +#define GPOINTER_TO_UINT(p) ((guint) (p))
1.98 +
1.99 +#define GINT_TO_POINTER(i) ((gpointer) (i))
1.100 +#define GUINT_TO_POINTER(u) ((gpointer) (u))
1.101 +
1.102 +typedef signed int gintptr;
1.103 +typedef unsigned int guintptr;
1.104 +
1.105 +#ifdef NeXT /* @#%@! NeXTStep */
1.106 +# define g_ATEXIT(proc) (!atexit (proc))
1.107 +#else
1.108 +# define g_ATEXIT(proc) (atexit (proc))
1.109 +#endif
1.110 +
1.111 +#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
1.112 +#ifdef __SYMBIAN32__
1.113 +#ifndef GLIB_MAJOR_VERSION
1.114 +#define GLIB_MAJOR_VERSION 2
1.115 +#endif
1.116 +#ifndef GLIB_MINOR_VERSION
1.117 +#define GLIB_MINOR_VERSION 20
1.118 +#endif
1.119 +#ifndef GLIB_MICRO_VERSION
1.120 +#define GLIB_MICRO_VERSION 4
1.121 +#endif
1.122 +#endif//__SYMBIAN32__
1.123 +
1.124 +#ifndef __SYMBIAN32__
1.125 +#define G_OS_UNIX
1.126 +#endif//__SYMBIAN32__
1.127 +
1.128 +#define G_VA_COPY va_copy
1.129 +
1.130 +#ifdef __cplusplus
1.131 +#define G_HAVE_INLINE 1
1.132 +#else /* !__cplusplus */
1.133 +#ifndef __SYMBIAN32__
1.134 +#define G_HAVE_INLINE 1
1.135 +#define G_HAVE___INLINE__ 1
1.136 +#else//__SYMBIAN32__
1.137 +#define G_HAVE___INLINE 1
1.138 +#endif//__SYMBIAN32__
1.139 +#endif /* !__cplusplus */
1.140 +
1.141 +#ifdef __cplusplus
1.142 +#define G_CAN_INLINE 1
1.143 +#else /* !__cplusplus */
1.144 +#ifdef __SYMBIAN32__
1.145 +#define G_CAN_INLINE 1
1.146 +#endif//__SYMBIAN32__
1.147 +#endif
1.148 +
1.149 +#ifndef __SYMBIAN32__
1.150 +#ifndef __cplusplus
1.151 +# define G_HAVE_ISO_VARARGS 1
1.152 +#endif
1.153 +#ifdef __cplusplus
1.154 +# define G_HAVE_ISO_VARARGS 1
1.155 +#endif
1.156 +
1.157 +/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
1.158 + * is passed ISO vararg support is turned off, and there is no work
1.159 + * around to turn it on, so we unconditionally turn it off.
1.160 + */
1.161 +#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
1.162 +# undef G_HAVE_ISO_VARARGS
1.163 +#endif
1.164 +
1.165 +#define G_HAVE_GNUC_VARARGS 1
1.166 +#endif /* __SYMBIAN32__ */
1.167 +
1.168 +#define G_HAVE_GROWING_STACK 0
1.169 +
1.170 +#define G_GNUC_INTERNAL
1.171 +
1.172 +#define G_THREADS_ENABLED
1.173 +#define G_THREADS_IMPL_POSIX
1.174 +typedef struct _GStaticMutex GStaticMutex;
1.175 +struct _GStaticMutex
1.176 +{
1.177 + struct _GMutex *runtime_mutex;
1.178 + #ifndef __SYMBIAN32__
1.179 + union {
1.180 + char pad[24];
1.181 + double dummy_double;
1.182 + void *dummy_pointer;
1.183 + long dummy_long;
1.184 + } static_mutex;
1.185 + #else //__SYMBIAN32__
1.186 + pthread_mutex_t static_mutex;
1.187 + #endif //__SYMBIAN32__
1.188 +};
1.189 +
1.190 +#ifndef __SYMBIAN32__
1.191 +#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} } }
1.192 +#else
1.193 +#define G_STATIC_MUTEX_INIT { NULL, PTHREAD_MUTEX_INITIALIZER}
1.194 +#endif //__SYMBIAN32__
1.195 +
1.196 +#ifndef __SYMBIAN32__
1.197 +#define g_static_mutex_get_mutex(mutex) \
1.198 + (g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : \
1.199 + g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
1.200 +#else /* !__SYMBIAN32__ */
1.201 +#define g_static_mutex_get_mutex(mutex) \
1.202 + (g_thread_use_default_impl ? ((GMutex*) &((mutex)->static_mutex)) : \
1.203 + g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
1.204 +#endif /* __SYMBIAN32__ */
1.205 +
1.206 +/* This represents a system thread as used by the implementation. An
1.207 + * alien implementaion, as loaded by g_thread_init can only count on
1.208 + * "sizeof (gpointer)" bytes to store their info. We however need more
1.209 + * for some of our native implementations. */
1.210 +typedef union _GSystemThread GSystemThread;
1.211 +union _GSystemThread
1.212 +{
1.213 + char data[4];
1.214 + double dummy_double;
1.215 + void *dummy_pointer;
1.216 + long dummy_long;
1.217 +};
1.218 +
1.219 +#define GINT16_TO_LE(val) ((gint16) (val))
1.220 +#define GUINT16_TO_LE(val) ((guint16) (val))
1.221 +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
1.222 +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
1.223 +#define GINT32_TO_LE(val) ((gint32) (val))
1.224 +#define GUINT32_TO_LE(val) ((guint32) (val))
1.225 +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
1.226 +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
1.227 +#define GINT64_TO_LE(val) ((gint64) (val))
1.228 +#define GUINT64_TO_LE(val) ((guint64) (val))
1.229 +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
1.230 +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
1.231 +#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
1.232 +#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
1.233 +#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
1.234 +#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
1.235 +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
1.236 +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
1.237 +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
1.238 +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
1.239 +#define G_BYTE_ORDER G_LITTLE_ENDIAN
1.240 +
1.241 +#define GLIB_SYSDEF_POLLIN =1
1.242 +#define GLIB_SYSDEF_POLLOUT =4
1.243 +#define GLIB_SYSDEF_POLLPRI =2
1.244 +#define GLIB_SYSDEF_POLLHUP =16
1.245 +#define GLIB_SYSDEF_POLLERR =8
1.246 +#define GLIB_SYSDEF_POLLNVAL =32
1.247 +
1.248 +#ifdef __SYMBIAN32__
1.249 +#define G_MODULE_SUFFIX "dll"
1.250 +#else
1.251 +#define G_MODULE_SUFFIX "so"
1.252 +#endif /* __SYMBIAN32__ */
1.253 +
1.254 +/* A GPid is an abstraction for a process "handle". It is *not* an
1.255 + * abstraction for a process identifier in general. GPid is used in
1.256 + * GLib only for descendant processes spawned with the g_spawn*
1.257 + * functions. On POSIX there is no "process handle" concept as such,
1.258 + * but on Windows a GPid is a handle to a process, a kind of pointer,
1.259 + * not a process identifier.
1.260 + */
1.261 +typedef int GPid;
1.262 +
1.263 +#define GLIB_SYSDEF_AF_INET 2
1.264 +#define GLIB_SYSDEF_AF_INET6 23
1.265 +
1.266 +G_END_DECLS
1.267 +
1.268 +#endif /* GLIBCONFIG_H */