PageRenderTime 50ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/build/glibconfig-x86.h

https://bitbucket.org/jnbek/pchat-dev
C Header | 226 lines | 166 code | 40 blank | 20 comment | 7 complexity | a68141f33d2a470227481c1da68ce5bb MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, LGPL-3.0
  1. /* patched according to https://bugzilla.gnome.org/show_bug.cgi?id=630870 */
  2. /* glibconfig.h
  3. *
  4. * This is a generated file. Please modify 'configure.ac'
  5. */
  6. #ifndef __G_LIBCONFIG_H__
  7. #define __G_LIBCONFIG_H__
  8. #include <glib/gmacros.h>
  9. #include <limits.h>
  10. #include <float.h>
  11. G_BEGIN_DECLS
  12. #define G_MINFLOAT FLT_MIN
  13. #define G_MAXFLOAT FLT_MAX
  14. #define G_MINDOUBLE DBL_MIN
  15. #define G_MAXDOUBLE DBL_MAX
  16. #define G_MINSHORT SHRT_MIN
  17. #define G_MAXSHORT SHRT_MAX
  18. #define G_MAXUSHORT USHRT_MAX
  19. #define G_MININT INT_MIN
  20. #define G_MAXINT INT_MAX
  21. #define G_MAXUINT UINT_MAX
  22. #define G_MINLONG LONG_MIN
  23. #define G_MAXLONG LONG_MAX
  24. #define G_MAXULONG ULONG_MAX
  25. typedef signed char gint8;
  26. typedef unsigned char guint8;
  27. typedef signed short gint16;
  28. typedef unsigned short guint16;
  29. #define G_GINT16_MODIFIER "h"
  30. #define G_GINT16_FORMAT "hi"
  31. #define G_GUINT16_FORMAT "hu"
  32. typedef signed int gint32;
  33. typedef unsigned int guint32;
  34. #define G_GINT32_MODIFIER ""
  35. #define G_GINT32_FORMAT "i"
  36. #define G_GUINT32_FORMAT "u"
  37. #define G_HAVE_GINT64 1 /* deprecated, always true */
  38. G_GNUC_EXTENSION typedef signed long long gint64;
  39. G_GNUC_EXTENSION typedef unsigned long long guint64;
  40. #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
  41. #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
  42. #define G_GINT64_MODIFIER "I64"
  43. #define G_GINT64_FORMAT "I64i"
  44. #define G_GUINT64_FORMAT "I64u"
  45. #define GLIB_SIZEOF_VOID_P 4
  46. #define GLIB_SIZEOF_LONG 4
  47. #define GLIB_SIZEOF_SIZE_T 4
  48. typedef signed int gssize;
  49. typedef unsigned int gsize;
  50. #define G_GSIZE_MODIFIER ""
  51. #define G_GSSIZE_FORMAT "i"
  52. #define G_GSIZE_FORMAT "u"
  53. #define G_MAXSIZE G_MAXUINT
  54. #define G_MINSSIZE G_MININT
  55. #define G_MAXSSIZE G_MAXINT
  56. typedef gint64 goffset;
  57. #define G_MINOFFSET G_MININT64
  58. #define G_MAXOFFSET G_MAXINT64
  59. #define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
  60. #define G_GOFFSET_FORMAT G_GINT64_FORMAT
  61. #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
  62. #define GPOINTER_TO_INT(p) ((gint) (p))
  63. #define GPOINTER_TO_UINT(p) ((guint) (p))
  64. #define GINT_TO_POINTER(i) ((gpointer) (i))
  65. #define GUINT_TO_POINTER(u) ((gpointer) (u))
  66. typedef signed int gintptr;
  67. typedef unsigned int guintptr;
  68. #define G_GINTPTR_MODIFIER ""
  69. #define G_GINTPTR_FORMAT "i"
  70. #define G_GUINTPTR_FORMAT "u"
  71. #ifdef NeXT /* @#%@! NeXTStep */
  72. # define g_ATEXIT(proc) (!atexit (proc))
  73. #else
  74. # define g_ATEXIT(proc) (atexit (proc))
  75. #endif
  76. #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
  77. #define GLIB_MAJOR_VERSION 2
  78. #define GLIB_MINOR_VERSION 28
  79. #define GLIB_MICRO_VERSION 8
  80. #define G_OS_WIN32
  81. #define G_PLATFORM_WIN32
  82. #define G_VA_COPY va_copy
  83. #ifdef __cplusplus
  84. #define G_HAVE_INLINE 1
  85. #else /* !__cplusplus */
  86. #ifndef _MSC_VER
  87. #define G_HAVE_INLINE 1
  88. #endif /* _MSC_VER */
  89. #define G_HAVE___INLINE 1
  90. #if !defined(_MSC_VER) && !defined(__DMC__)
  91. #define G_HAVE___INLINE__ 1
  92. #endif /* !_MSC_VER and !__DMC__ */
  93. #endif /* !__cplusplus */
  94. #ifdef __cplusplus
  95. #define G_CAN_INLINE 1
  96. #else /* !__cplusplus */
  97. #define G_CAN_INLINE 1
  98. #endif
  99. #ifndef __cplusplus
  100. # define G_HAVE_ISO_VARARGS 1
  101. #endif
  102. /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
  103. * is passed ISO vararg support is turned off, and there is no work
  104. * around to turn it on, so we unconditionally turn it off.
  105. */
  106. #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
  107. # undef G_HAVE_ISO_VARARGS
  108. #endif
  109. #define G_HAVE_GNUC_VARARGS 1
  110. #define G_HAVE_GROWING_STACK 0
  111. #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
  112. #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
  113. #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
  114. #define G_GNUC_INTERNAL __hidden
  115. #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
  116. #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
  117. #else
  118. #define G_GNUC_INTERNAL
  119. #endif
  120. #define G_THREADS_ENABLED
  121. #define G_THREADS_IMPL_WIN32
  122. typedef struct _GMutex* GStaticMutex;
  123. #define G_STATIC_MUTEX_INIT NULL
  124. #define g_static_mutex_get_mutex(mutex) \
  125. (g_static_mutex_get_mutex_impl_shortcut (mutex))
  126. /* This represents a system thread as used by the implementation. An
  127. * alien implementaion, as loaded by g_thread_init can only count on
  128. * "sizeof (gpointer)" bytes to store their info. We however need more
  129. * for some of our native implementations. */
  130. typedef union _GSystemThread GSystemThread;
  131. union _GSystemThread
  132. {
  133. char data[4];
  134. double dummy_double;
  135. void *dummy_pointer;
  136. long dummy_long;
  137. };
  138. #define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1
  139. #define GINT16_TO_LE(val) ((gint16) (val))
  140. #define GUINT16_TO_LE(val) ((guint16) (val))
  141. #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
  142. #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
  143. #define GINT32_TO_LE(val) ((gint32) (val))
  144. #define GUINT32_TO_LE(val) ((guint32) (val))
  145. #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
  146. #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
  147. #define GINT64_TO_LE(val) ((gint64) (val))
  148. #define GUINT64_TO_LE(val) ((guint64) (val))
  149. #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
  150. #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
  151. #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
  152. #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
  153. #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
  154. #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
  155. #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
  156. #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
  157. #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
  158. #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
  159. #define GSIZE_TO_LE(val) ((gsize) GUINT32_TO_LE (val))
  160. #define GSSIZE_TO_LE(val) ((gssize) GINT32_TO_LE (val))
  161. #define GSIZE_TO_BE(val) ((gsize) GUINT32_TO_BE (val))
  162. #define GSSIZE_TO_BE(val) ((gssize) GINT32_TO_BE (val))
  163. #define G_BYTE_ORDER G_LITTLE_ENDIAN
  164. #define GLIB_SYSDEF_POLLIN =1
  165. #define GLIB_SYSDEF_POLLOUT =4
  166. #define GLIB_SYSDEF_POLLPRI =2
  167. #define GLIB_SYSDEF_POLLHUP =16
  168. #define GLIB_SYSDEF_POLLERR =8
  169. #define GLIB_SYSDEF_POLLNVAL =32
  170. #define G_MODULE_SUFFIX "dll"
  171. /* A GPid is an abstraction for a process "handle". It is *not* an
  172. * abstraction for a process identifier in general. GPid is used in
  173. * GLib only for descendant processes spawned with the g_spawn*
  174. * functions. On POSIX there is no "process handle" concept as such,
  175. * but on Windows a GPid is a handle to a process, a kind of pointer,
  176. * not a process identifier.
  177. */
  178. typedef void * GPid;
  179. #define GLIB_SYSDEF_AF_UNIX 1
  180. #define GLIB_SYSDEF_AF_INET 2
  181. #define GLIB_SYSDEF_AF_INET6 23
  182. #define GLIB_SYSDEF_MSG_OOB 1
  183. #define GLIB_SYSDEF_MSG_PEEK 2
  184. #define GLIB_SYSDEF_MSG_DONTROUTE 4
  185. G_END_DECLS
  186. #endif /* GLIBCONFIG_H */