glibconfig.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. G_GNUC_EXTENSION typedef signed long long gint64;
  44. G_GNUC_EXTENSION typedef unsigned long long guint64;
  45. #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
  46. #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
  47. #define G_GINT64_MODIFIER "ll"
  48. #define G_GINT64_FORMAT "lli"
  49. #define G_GUINT64_FORMAT "llu"
  50. #define GLIB_SIZEOF_VOID_P 4
  51. #define GLIB_SIZEOF_LONG 4
  52. #define GLIB_SIZEOF_SIZE_T 4
  53. #define GLIB_SIZEOF_SSIZE_T 4
  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) (gint) (p))
  70. #define GPOINTER_TO_UINT(p) ((guint) (guint) (p))
  71. #define GINT_TO_POINTER(i) ((gpointer) (gint) (i))
  72. #define GUINT_TO_POINTER(u) ((gpointer) (guint) (u))
  73. typedef signed int gintptr;
  74. typedef unsigned int guintptr;
  75. #define G_GINTPTR_MODIFIER ""
  76. #define G_GINTPTR_FORMAT "i"
  77. #define G_GUINTPTR_FORMAT "u"
  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. #ifdef __cplusplus
  88. #define G_HAVE_INLINE 1
  89. #else /* !__cplusplus */
  90. #define G_HAVE_INLINE 1
  91. #define G_HAVE___INLINE 1
  92. #define G_HAVE___INLINE__ 1
  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. #ifdef __cplusplus
  103. # define G_HAVE_ISO_VARARGS 1
  104. #endif
  105. /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
  106. * is passed ISO vararg support is turned off, and there is no work
  107. * around to turn it on, so we unconditionally turn it off.
  108. */
  109. #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
  110. # undef G_HAVE_ISO_VARARGS
  111. #endif
  112. #define G_HAVE_GNUC_VARARGS 1
  113. #define G_HAVE_GROWING_STACK 0
  114. #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
  115. #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
  116. #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
  117. #define G_GNUC_INTERNAL __hidden
  118. #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
  119. #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
  120. #else
  121. #define G_GNUC_INTERNAL
  122. #endif
  123. #define G_THREADS_ENABLED
  124. #define G_THREADS_IMPL_POSIX
  125. #define G_ATOMIC_LOCK_FREE
  126. #define GINT16_TO_LE(val) ((gint16) (val))
  127. #define GUINT16_TO_LE(val) ((guint16) (val))
  128. #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
  129. #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
  130. #define GINT32_TO_LE(val) ((gint32) (val))
  131. #define GUINT32_TO_LE(val) ((guint32) (val))
  132. #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
  133. #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
  134. #define GINT64_TO_LE(val) ((gint64) (val))
  135. #define GUINT64_TO_LE(val) ((guint64) (val))
  136. #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
  137. #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
  138. #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
  139. #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
  140. #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
  141. #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
  142. #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
  143. #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
  144. #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
  145. #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
  146. #define GSIZE_TO_LE(val) ((gsize) GUINT32_TO_LE (val))
  147. #define GSSIZE_TO_LE(val) ((gssize) GINT32_TO_LE (val))
  148. #define GSIZE_TO_BE(val) ((gsize) GUINT32_TO_BE (val))
  149. #define GSSIZE_TO_BE(val) ((gssize) GINT32_TO_BE (val))
  150. #define G_BYTE_ORDER G_LITTLE_ENDIAN
  151. #define GLIB_SYSDEF_POLLIN =1
  152. #define GLIB_SYSDEF_POLLOUT =4
  153. #define GLIB_SYSDEF_POLLPRI =2
  154. #define GLIB_SYSDEF_POLLHUP =16
  155. #define GLIB_SYSDEF_POLLERR =8
  156. #define GLIB_SYSDEF_POLLNVAL =32
  157. #define G_MODULE_SUFFIX "so"
  158. typedef int GPid;
  159. #define GLIB_SYSDEF_AF_UNIX 1
  160. #define GLIB_SYSDEF_AF_INET 2
  161. #define GLIB_SYSDEF_AF_INET6 30
  162. #define GLIB_SYSDEF_MSG_OOB 1
  163. #define GLIB_SYSDEF_MSG_PEEK 2
  164. #define GLIB_SYSDEF_MSG_DONTROUTE 4
  165. G_END_DECLS
  166. #endif /* __GLIBCONFIG_H__ */