glibconfig.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. /* glibconfig.h
  2. *
  3. * This is a generated file. Please modify 'glibconfig.h.in'
  4. */
  5. #ifndef __GLIBCONFIG_H__
  6. #define __GLIBCONFIG_H__
  7. #include <glib/gmacros.h>
  8. #include <limits.h>
  9. #include <float.h>
  10. #define GLIB_HAVE_ALLOCA_H
  11. /* Specifies that GLib's g_print*() functions wrap the
  12. * system printf functions. This is useful to know, for example,
  13. * when using glibc's register_printf_function().
  14. */
  15. #undef GLIB_USING_SYSTEM_PRINTF
  16. /* #undef GLIB_STATIC_COMPILATION */
  17. /* #undef GOBJECT_STATIC_COMPILATION */
  18. G_BEGIN_DECLS
  19. #define G_MINFLOAT FLT_MIN
  20. #define G_MAXFLOAT FLT_MAX
  21. #define G_MINDOUBLE DBL_MIN
  22. #define G_MAXDOUBLE DBL_MAX
  23. #define G_MINSHORT SHRT_MIN
  24. #define G_MAXSHORT SHRT_MAX
  25. #define G_MAXUSHORT USHRT_MAX
  26. #define G_MININT INT_MIN
  27. #define G_MAXINT INT_MAX
  28. #define G_MAXUINT UINT_MAX
  29. #define G_MINLONG LONG_MIN
  30. #define G_MAXLONG LONG_MAX
  31. #define G_MAXULONG ULONG_MAX
  32. typedef signed char gint8;
  33. typedef unsigned char guint8;
  34. typedef signed short gint16;
  35. typedef unsigned short guint16;
  36. #define G_GINT16_MODIFIER "h"
  37. #define G_GINT16_FORMAT "hi"
  38. #define G_GUINT16_FORMAT "hu"
  39. typedef signed int gint32;
  40. typedef unsigned int guint32;
  41. #define G_GINT32_MODIFIER ""
  42. #define G_GINT32_FORMAT "i"
  43. #define G_GUINT32_FORMAT "u"
  44. #define G_HAVE_GINT64 1 /* deprecated, always true */
  45. typedef signed long gint64;
  46. typedef unsigned long guint64;
  47. #define G_GINT64_CONSTANT(val) (val##L)
  48. #define G_GUINT64_CONSTANT(val) (val##UL)
  49. #define G_GINT64_MODIFIER "l"
  50. #define G_GINT64_FORMAT "li"
  51. #define G_GUINT64_FORMAT "lu"
  52. #define GLIB_SIZEOF_VOID_P 8
  53. #define GLIB_SIZEOF_LONG 8
  54. #define GLIB_SIZEOF_SIZE_T 8
  55. #define GLIB_SIZEOF_SSIZE_T 8
  56. typedef signed long gssize;
  57. typedef unsigned long gsize;
  58. #define G_GSIZE_MODIFIER "l"
  59. #define G_GSSIZE_MODIFIER "l"
  60. #define G_GSIZE_FORMAT "lu"
  61. #define G_GSSIZE_FORMAT "li"
  62. #define G_MAXSIZE G_MAXULONG
  63. #define G_MINSSIZE G_MINLONG
  64. #define G_MAXSSIZE G_MAXLONG
  65. typedef gint64 goffset;
  66. #define G_MINOFFSET G_MININT64
  67. #define G_MAXOFFSET G_MAXINT64
  68. #define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
  69. #define G_GOFFSET_FORMAT G_GINT64_FORMAT
  70. #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
  71. #define G_POLLFD_FORMAT "%d"
  72. #define GPOINTER_TO_INT(p) ((gint) (glong) (p))
  73. #define GPOINTER_TO_UINT(p) ((guint) (gulong) (p))
  74. #define GINT_TO_POINTER(i) ((gpointer) (glong) (i))
  75. #define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
  76. typedef signed long gintptr;
  77. typedef unsigned long guintptr;
  78. #define G_GINTPTR_MODIFIER "l"
  79. #define G_GINTPTR_FORMAT "li"
  80. #define G_GUINTPTR_FORMAT "lu"
  81. #define GLIB_MAJOR_VERSION 2
  82. #define GLIB_MINOR_VERSION 62
  83. #define GLIB_MICRO_VERSION 6
  84. #define G_OS_UNIX
  85. #define G_VA_COPY va_copy
  86. #ifndef __cplusplus
  87. # define G_HAVE_ISO_VARARGS 1
  88. #endif
  89. #ifdef __cplusplus
  90. # define G_HAVE_ISO_VARARGS 1
  91. #endif
  92. /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
  93. * is passed ISO vararg support is turned off, and there is no work
  94. * around to turn it on, so we unconditionally turn it off.
  95. */
  96. #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
  97. # undef G_HAVE_ISO_VARARGS
  98. #endif
  99. #define G_HAVE_GROWING_STACK 1
  100. #define G_HAVE_GNUC_VISIBILITY 1
  101. #ifndef _MSC_VER
  102. # define G_HAVE_GNUC_VARARGS 1
  103. #endif
  104. #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
  105. #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
  106. #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
  107. #define G_GNUC_INTERNAL __hidden
  108. #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
  109. #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
  110. #else
  111. #define G_GNUC_INTERNAL
  112. #endif
  113. #define G_THREADS_ENABLED
  114. #define G_THREADS_IMPL_POSIX
  115. #undef G_ATOMIC_OP_MEMORY_BARRIER_NEEDED
  116. #define G_ATOMIC_LOCK_FREE
  117. #define GINT16_TO_LE(val) ((gint16) (val))
  118. #define GUINT16_TO_LE(val) ((guint16) (val))
  119. #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
  120. #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
  121. #define GINT32_TO_LE(val) ((gint32) (val))
  122. #define GUINT32_TO_LE(val) ((guint32) (val))
  123. #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
  124. #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
  125. #define GINT64_TO_LE(val) ((gint64) (val))
  126. #define GUINT64_TO_LE(val) ((guint64) (val))
  127. #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
  128. #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
  129. #define GLONG_TO_LE(val) ((glong) GINT64_TO_LE (val))
  130. #define GULONG_TO_LE(val) ((gulong) GUINT64_TO_LE (val))
  131. #define GLONG_TO_BE(val) ((glong) GINT64_TO_BE (val))
  132. #define GULONG_TO_BE(val) ((gulong) GUINT64_TO_BE (val))
  133. #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
  134. #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
  135. #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
  136. #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
  137. #define GSIZE_TO_LE(val) ((gsize) GUINT64_TO_LE (val))
  138. #define GSSIZE_TO_LE(val) ((gssize) GINT64_TO_LE (val))
  139. #define GSIZE_TO_BE(val) ((gsize) GUINT64_TO_BE (val))
  140. #define GSSIZE_TO_BE(val) ((gssize) GINT64_TO_BE (val))
  141. #define G_BYTE_ORDER G_LITTLE_ENDIAN
  142. #define GLIB_SYSDEF_POLLIN =1
  143. #define GLIB_SYSDEF_POLLOUT =4
  144. #define GLIB_SYSDEF_POLLPRI =2
  145. #define GLIB_SYSDEF_POLLHUP =16
  146. #define GLIB_SYSDEF_POLLERR =8
  147. #define GLIB_SYSDEF_POLLNVAL =32
  148. #define G_MODULE_SUFFIX "so"
  149. typedef int GPid;
  150. #define G_PID_FORMAT "i"
  151. #define GLIB_SYSDEF_AF_UNIX 1
  152. #define GLIB_SYSDEF_AF_INET 2
  153. #define GLIB_SYSDEF_AF_INET6 10
  154. #define GLIB_SYSDEF_MSG_OOB 1
  155. #define GLIB_SYSDEF_MSG_PEEK 2
  156. #define GLIB_SYSDEF_MSG_DONTROUTE 4
  157. #define G_DIR_SEPARATOR '/'
  158. #define G_DIR_SEPARATOR_S "/"
  159. #define G_SEARCHPATH_SEPARATOR ':'
  160. #define G_SEARCHPATH_SEPARATOR_S ":"
  161. G_END_DECLS
  162. #endif /* __GLIBCONFIG_H__ */