glibconfig.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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 int gssize;
  55. typedef unsigned int gsize;
  56. #define G_GSIZE_MODIFIER ""
  57. #define G_GSSIZE_MODIFIER ""
  58. #define G_GSIZE_FORMAT "u"
  59. #define G_GSSIZE_FORMAT "i"
  60. #define G_MAXSIZE G_MAXUINT
  61. #define G_MINSSIZE G_MININT
  62. #define G_MAXSSIZE G_MAXINT
  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 G_POLLFD_FORMAT "%d"
  70. #define GPOINTER_TO_INT(p) ((gint) (gint) (p))
  71. #define GPOINTER_TO_UINT(p) ((guint) (guint) (p))
  72. #define GINT_TO_POINTER(i) ((gpointer) (gint) (i))
  73. #define GUINT_TO_POINTER(u) ((gpointer) (guint) (u))
  74. typedef signed int gintptr;
  75. typedef unsigned int guintptr;
  76. #define G_GINTPTR_MODIFIER ""
  77. #define G_GINTPTR_FORMAT "i"
  78. #define G_GUINTPTR_FORMAT "u"
  79. #ifndef G_DISABLE_DEPRECATED
  80. #define g_ATEXIT(proc) (atexit (proc))
  81. #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
  82. #endif
  83. #define GLIB_MAJOR_VERSION 2
  84. #define GLIB_MINOR_VERSION 48
  85. #define GLIB_MICRO_VERSION 2
  86. #define G_OS_UNIX
  87. #define G_VA_COPY va_copy
  88. #ifndef __cplusplus
  89. # define G_HAVE_ISO_VARARGS 1
  90. #endif
  91. #ifdef __cplusplus
  92. # define G_HAVE_ISO_VARARGS 1
  93. #endif
  94. /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
  95. * is passed ISO vararg support is turned off, and there is no work
  96. * around to turn it on, so we unconditionally turn it off.
  97. */
  98. #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
  99. # undef G_HAVE_ISO_VARARGS
  100. #endif
  101. #define G_HAVE_GNUC_VARARGS 1
  102. #define G_HAVE_GROWING_STACK 0
  103. #define G_HAVE_GNUC_VISIBILITY 1
  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. #define G_ATOMIC_LOCK_FREE
  116. #define GINT16_TO_LE(val) ((gint16) (val))
  117. #define GUINT16_TO_LE(val) ((guint16) (val))
  118. #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
  119. #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
  120. #define GINT32_TO_LE(val) ((gint32) (val))
  121. #define GUINT32_TO_LE(val) ((guint32) (val))
  122. #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
  123. #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
  124. #define GINT64_TO_LE(val) ((gint64) (val))
  125. #define GUINT64_TO_LE(val) ((guint64) (val))
  126. #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
  127. #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
  128. #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
  129. #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
  130. #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
  131. #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
  132. #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
  133. #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
  134. #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
  135. #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
  136. #define GSIZE_TO_LE(val) ((gsize) GUINT32_TO_LE (val))
  137. #define GSSIZE_TO_LE(val) ((gssize) GINT32_TO_LE (val))
  138. #define GSIZE_TO_BE(val) ((gsize) GUINT32_TO_BE (val))
  139. #define GSSIZE_TO_BE(val) ((gssize) GINT32_TO_BE (val))
  140. #define G_BYTE_ORDER G_LITTLE_ENDIAN
  141. #define GLIB_SYSDEF_POLLIN =1
  142. #define GLIB_SYSDEF_POLLOUT =4
  143. #define GLIB_SYSDEF_POLLPRI =2
  144. #define GLIB_SYSDEF_POLLHUP =16
  145. #define GLIB_SYSDEF_POLLERR =8
  146. #define GLIB_SYSDEF_POLLNVAL =32
  147. #define G_MODULE_SUFFIX "so"
  148. typedef int GPid;
  149. #define GLIB_SYSDEF_AF_UNIX 1
  150. #define GLIB_SYSDEF_AF_INET 2
  151. #define GLIB_SYSDEF_AF_INET6 10
  152. #define GLIB_SYSDEF_MSG_OOB 1
  153. #define GLIB_SYSDEF_MSG_PEEK 2
  154. #define GLIB_SYSDEF_MSG_DONTROUTE 4
  155. G_END_DECLS
  156. #endif /* __GLIBCONFIG_H__ */