00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef __G_LIBCONFIG_H__
00027 #define __G_LIBCONFIG_H__
00028
00029 #include <glib/gmacros.h>
00030
00031 #include <limits.h>
00032 #include <float.h>
00033 #ifdef SYMBIAN
00034 #include <pthread.h>
00035
00036 #endif
00037
00038 #ifndef SYMBIAN
00039 #define GLIB_HAVE_ALLOCA_H
00040 #define GLIB_HAVE_SYS_POLL_H
00041 #endif
00042
00043 G_BEGIN_DECLS
00044
00045 #define G_MINFLOAT FLT_MIN
00046 #define G_MAXFLOAT FLT_MAX
00047 #define G_MINDOUBLE DBL_MIN
00048 #define G_MAXDOUBLE DBL_MAX
00049 #define G_MINSHORT SHRT_MIN
00050 #define G_MAXSHORT SHRT_MAX
00051 #define G_MAXUSHORT USHRT_MAX
00052 #define G_MININT INT_MIN
00053 #define G_MAXINT INT_MAX
00054 #define G_MAXUINT UINT_MAX
00055 #define G_MINLONG LONG_MIN
00056 #define G_MAXLONG LONG_MAX
00057 #define G_MAXULONG ULONG_MAX
00058
00059 typedef signed char gint8;
00060 typedef unsigned char guint8;
00061 typedef signed short gint16;
00062 typedef unsigned short guint16;
00063 #define G_GINT16_MODIFIER "h"
00064 #define G_GINT16_FORMAT "hi"
00065 #define G_GUINT16_FORMAT "hu"
00066 typedef signed int gint32;
00067 typedef unsigned int guint32;
00068 #define G_GINT32_MODIFIER ""
00069 #define G_GINT32_FORMAT "i"
00070 #define G_GUINT32_FORMAT "u"
00071 #define G_HAVE_GINT64 1
00072
00073 G_GNUC_EXTENSION typedef signed long long gint64;
00074 G_GNUC_EXTENSION typedef unsigned long long guint64;
00075
00076 #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
00077 #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
00078 #define G_GINT64_MODIFIER "ll"
00079 #define G_GINT64_FORMAT "lli"
00080 #define G_GUINT64_FORMAT "llu"
00081
00082 #define GLIB_SIZEOF_VOID_P 4
00083 #define GLIB_SIZEOF_LONG 4
00084 #define GLIB_SIZEOF_SIZE_T 4
00085
00086 typedef signed int gssize;
00087 typedef unsigned int gsize;
00088 #define G_GSIZE_MODIFIER ""
00089 #define G_GSSIZE_FORMAT "i"
00090 #define G_GSIZE_FORMAT "u"
00091
00092 #define G_MAXSIZE G_MAXUINT
00093
00094 #define GPOINTER_TO_INT(p) ((gint) (p))
00095 #define GPOINTER_TO_UINT(p) ((guint) (p))
00096
00097 #define GINT_TO_POINTER(i) ((gpointer) (i))
00098 #define GUINT_TO_POINTER(u) ((gpointer) (u))
00099
00100 #ifdef NeXT
00101 # define g_ATEXIT(proc) (!atexit (proc))
00102 #else
00103 # define g_ATEXIT(proc) (atexit (proc))
00104 #endif
00105
00106 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
00107
00108 #define GLIB_MAJOR_VERSION 2
00109 #define GLIB_MINOR_VERSION 10
00110 #define GLIB_MICRO_VERSION 3
00111
00112 #define G_OS_UNIX
00113
00114 #define G_VA_COPY va_copy
00115
00116 #ifdef __cplusplus
00117 #define G_HAVE_INLINE 1
00118 #else
00119 #define G_HAVE_INLINE 1
00120 #define G_HAVE___INLINE 1
00121 #define G_HAVE___INLINE__ 1
00122 #endif
00123
00124 #ifdef __cplusplus
00125 #define G_CAN_INLINE 1
00126 #else
00127 #define G_CAN_INLINE 1
00128 #endif
00129
00130 #ifndef SYMBIAN
00131 #ifndef __cplusplus
00132 # define G_HAVE_ISO_VARARGS 1
00133 #endif
00134 #ifdef __cplusplus
00135 # define G_HAVE_ISO_VARARGS 1
00136 #endif
00137
00138
00139
00140
00141
00142 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
00143 # undef G_HAVE_ISO_VARARGS
00144 #endif
00145
00146 #define G_HAVE_GNUC_VARARGS 1
00147 #endif
00148
00149 #define G_HAVE_GROWING_STACK 0
00150
00151 #define G_GNUC_INTERNAL
00152
00153 #define G_THREADS_ENABLED
00154 #define G_THREADS_IMPL_POSIX
00155 typedef struct _GStaticMutex GStaticMutex;
00156 struct _GStaticMutex
00157 {
00158 struct _GMutex *runtime_mutex;
00159 #ifndef SYMBIAN
00160 union {
00161 char pad[24];
00162 double dummy_double;
00163 void *dummy_pointer;
00164 long dummy_long;
00165 } static_mutex;
00166 #else //SYMBIAN
00167 pthread_mutex_t static_mutex;
00168
00169 #endif
00170 };
00171
00172 #ifndef SYMBIAN
00173 #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} } }
00174 #else
00175 #define G_STATIC_MUTEX_INIT { NULL, PTHREAD_MUTEX_INITIALIZER}
00176
00177 #endif
00178
00179 #ifndef SYMBIAN
00180 #define g_static_mutex_get_mutex(mutex) \
00181 (g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : \
00182 g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
00183 #else
00184 #define g_static_mutex_get_mutex(mutex) \
00185 (g_thread_use_default_impl ? ((GMutex*) &((mutex)->static_mutex)) : \
00186 g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
00187 #endif
00188
00189
00190
00191
00192
00193 typedef union _GSystemThread GSystemThread;
00194 union _GSystemThread
00195 {
00196 char data[4];
00197 double dummy_double;
00198 void *dummy_pointer;
00199 long dummy_long;
00200 };
00201
00202 #define GINT16_TO_LE(val) ((gint16) (val))
00203 #define GUINT16_TO_LE(val) ((guint16) (val))
00204 #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
00205 #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
00206 #define GINT32_TO_LE(val) ((gint32) (val))
00207 #define GUINT32_TO_LE(val) ((guint32) (val))
00208 #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
00209 #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
00210 #define GINT64_TO_LE(val) ((gint64) (val))
00211 #define GUINT64_TO_LE(val) ((guint64) (val))
00212 #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
00213 #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
00214 #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
00215 #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
00216 #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
00217 #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
00218 #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
00219 #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
00220 #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
00221 #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
00222 #define G_BYTE_ORDER G_LITTLE_ENDIAN
00223
00224 #define GLIB_SYSDEF_POLLIN =1
00225 #define GLIB_SYSDEF_POLLOUT =4
00226 #define GLIB_SYSDEF_POLLPRI =2
00227 #define GLIB_SYSDEF_POLLHUP =16
00228 #define GLIB_SYSDEF_POLLERR =8
00229 #define GLIB_SYSDEF_POLLNVAL =32
00230
00231 #ifdef SYMBIAN
00232 #define G_MODULE_SUFFIX "dll"
00233 #else
00234 #define G_MODULE_SUFFIX "so"
00235 #endif
00236
00237 typedef int GPid;
00238
00239 G_END_DECLS
00240
00241 #endif