You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

285 lines
7.6 KiB

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