glibconfig.h 5.6 KB

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