glib (2.79.0)

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