| Copyright 2020 The Monogon Project Authors. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| |
| From 5a0089d8e8be0905bcdc5604878c65eeca6f532c Mon Sep 17 00:00:00 2001 |
| From: Lorenz Brun <lorenz@nexantic.com> |
| Date: Thu, 18 Feb 2021 17:39:24 +0100 |
| Subject: [PATCH 1/2] Add Bazel support |
| |
| --- |
| BUILD | 0 |
| glib/BUILD | 202 +++++++++++++++++++++++ |
| glib/config.h | 412 ++++++++++++++++++++++++++++++++++++++++++++++ |
| glib/glibconfig.h | 215 ++++++++++++++++++++++++ |
| 4 files changed, 829 insertions(+) |
| create mode 100644 BUILD |
| create mode 100644 glib/BUILD |
| create mode 100644 glib/config.h |
| create mode 100644 glib/glibconfig.h |
| |
| diff --git a/BUILD b/BUILD |
| new file mode 100644 |
| index 000000000..e69de29bb |
| diff --git a/glib/BUILD b/glib/BUILD |
| new file mode 100644 |
| index 000000000..ecb524ecc |
| --- /dev/null |
| +++ b/glib/BUILD |
| @@ -0,0 +1,202 @@ |
| +cc_library( |
| + name = "glib", |
| + srcs = [ |
| + "garcbox.c", |
| + "garray.c", |
| + "gasyncqueue.c", |
| + "gatomic.c", |
| + "gbacktrace.c", |
| + "gbase64.c", |
| + "gbitlock.c", |
| + "gbookmarkfile.c", |
| + "gbytes.c", |
| + "gcharset.c", |
| + "gchecksum.c", |
| + "gconvert.c", |
| + "gdataset.c", |
| + "gdate.c", |
| + "gdatetime.c", |
| + "gdir.c", |
| + "genviron.c", |
| + "gerror.c", |
| + "gfileutils.c", |
| + "ggettext.c", |
| + "ghash.c", |
| + "ghmac.c", |
| + "ghook.c", |
| + "ghostutils.c", |
| + "giochannel.c", |
| + "gkeyfile.c", |
| + "glib-init.c", |
| + "glib-private.c", |
| + "glist.c", |
| + "gmain.c", |
| + "gmappedfile.c", |
| + "gmarkup.c", |
| + "gmem.c", |
| + "gmessages.c", |
| + "gnode.c", |
| + "goption.c", |
| + "gpattern.c", |
| + "gpoll.c", |
| + "gprimes.c", |
| + "gprintf.c", |
| + "gqsort.c", |
| + "gquark.c", |
| + "gqueue.c", |
| + "grand.c", |
| + "grcbox.c", |
| + "grefcount.c", |
| + "grefstring.c", |
| + "gregex.c", |
| + "gscanner.c", |
| + "gsequence.c", |
| + "gshell.c", |
| + "gslice.c", |
| + "gslist.c", |
| + "gstdio.c", |
| + "gstrfuncs.c", |
| + "gstring.c", |
| + "gstringchunk.c", |
| + "gstrvbuilder.c", |
| + "gtestutils.c", |
| + "gthread.c", |
| + "gthreadpool.c", |
| + "gtimer.c", |
| + "gtimezone.c", |
| + "gtrace.c", |
| + "gtranslit.c", |
| + "gtrashstack.c", |
| + "gtree.c", |
| + "gunibreak.c", |
| + "gunicollate.c", |
| + "gunidecomp.c", |
| + "guniprop.c", |
| + "guri.c", |
| + "gutf8.c", |
| + "gutils.c", |
| + "guuid.c", |
| + "gvariant.c", |
| + "gvariant-core.c", |
| + "gvariant-parser.c", |
| + "gvariant-serialiser.c", |
| + "gvarianttype.c", |
| + "gvarianttypeinfo.c", |
| + "gversion.c", |
| + "gwakeup.c", |
| + "libcharset/localcharset.c", |
| + ] + [ |
| + # Unix-specific |
| + "glib-unix.c", |
| + "gspawn.c", |
| + "giounix.c", |
| + "gthread-posix.c", |
| + ] + glob([ |
| + "*.h", |
| + "deprecated/*.h", |
| + "libcharset/*.h", |
| + "pcre/*.h", |
| + "pcre/*.c", |
| + ]), |
| + hdrs = [ |
| + "glib.h", |
| + # Only allowed to be included by glib.h, don't directly include them |
| + "deprecated/gallocator.h", |
| + "deprecated/gcache.h", |
| + "deprecated/gcompletion.h", |
| + "deprecated/gmain.h", |
| + "deprecated/grel.h", |
| + "deprecated/gthread.h", |
| + "galloca.h", |
| + "garray.h", |
| + "gasyncqueue.h", |
| + "gatomic.h", |
| + "gbacktrace.h", |
| + "gbase64.h", |
| + "gbitlock.h", |
| + "gbookmarkfile.h", |
| + "gbytes.h", |
| + "gcharset.h", |
| + "gchecksum.h", |
| + "gconvert.h", |
| + "gdataset.h", |
| + "gdate.h", |
| + "gdatetime.h", |
| + "gdir.h", |
| + "genviron.h", |
| + "gerror.h", |
| + "gfileutils.h", |
| + "ggettext.h", |
| + "ghash.h", |
| + "ghmac.h", |
| + "ghook.h", |
| + "ghostutils.h", |
| + "giochannel.h", |
| + "gkeyfile.h", |
| + "glib-autocleanups.h", |
| + "glist.h", |
| + "gmacros.h", |
| + "gmain.h", |
| + "gmappedfile.h", |
| + "gmarkup.h", |
| + "gmem.h", |
| + "gmessages.h", |
| + "gnode.h", |
| + "goption.h", |
| + "gpattern.h", |
| + "gpoll.h", |
| + "gprimes.h", |
| + "gqsort.h", |
| + "gquark.h", |
| + "gqueue.h", |
| + "grand.h", |
| + "grcbox.h", |
| + "grefcount.h", |
| + "grefstring.h", |
| + "gregex.h", |
| + "gscanner.h", |
| + "gsequence.h", |
| + "gshell.h", |
| + "gslice.h", |
| + "gslist.h", |
| + "gspawn.h", |
| + "gstrfuncs.h", |
| + "gstring.h", |
| + "gstringchunk.h", |
| + "gstrvbuilder.h", |
| + "gtestutils.h", |
| + "gthread.h", |
| + "gthreadpool.h", |
| + "gtimer.h", |
| + "gtimezone.h", |
| + "gtrashstack.h", |
| + "gtree.h", |
| + "gtypes.h", |
| + "gunicode.h", |
| + "guri.h", |
| + "gutils.h", |
| + "guuid.h", |
| + "gvariant.h", |
| + "gvarianttype.h", |
| + "gversion.h", |
| + "gversionmacros.h", |
| + ], |
| + local_defines = [ |
| + "HAVE_MEMMOVE=1", |
| + "SUPPORT_UCP=1", |
| + "SUPPORT_UTF=1", |
| + "SUPPORT_UTF8=1", |
| + "NEWLINE=-1", |
| + "MATCH_LIMIT=10000000", |
| + "MATCH_LIMIT_RECURSION=8192", |
| + "MAX_NAME_SIZE=32", |
| + "MAX_NAME_COUNT=10000", |
| + "MAX_DUPLENGTH=30000", |
| + "LINK_SIZE=2", |
| + "POSIX_MALLOC_THRESHOLD=10", |
| + "PCRE_STATIC=1", |
| + "GLIB_COMPILATION=1", |
| + "GLIB_CHARSETALIAS_DIR=\\\"/nonexistent\\\"", |
| + ], |
| + visibility = ["//visibility:public"], |
| +) |
| diff --git a/glib/config.h b/glib/config.h |
| new file mode 100644 |
| index 000000000..a13711316 |
| --- /dev/null |
| +++ b/glib/config.h |
| @@ -0,0 +1,412 @@ |
| +/* |
| + * Autogenerated by the Meson build system. |
| + * Do not edit, your changes will be lost. |
| + */ |
| + |
| +#pragma once |
| + |
| +#define ALIGNOF_GUINT32 4 |
| + |
| +#define ALIGNOF_GUINT64 8 |
| + |
| +#define ALIGNOF_UNSIGNED_LONG 8 |
| + |
| +#define ENABLE_NLS 1 |
| + |
| +#define EXEEXT |
| + |
| +#define GETTEXT_PACKAGE "glib20" |
| + |
| +#define GLIB_BINARY_AGE 6702 |
| + |
| +#define GLIB_INTERFACE_AGE 0 |
| + |
| +#define GLIB_LOCALE_DIR "/usr/local/share/locale" |
| + |
| +#define GLIB_MAJOR_VERSION 2 |
| + |
| +#define GLIB_MICRO_VERSION 2 |
| + |
| +#define GLIB_MINOR_VERSION 67 |
| + |
| +#define G_VA_COPY va_copy |
| + |
| +#define G_VA_COPY_AS_ARRAY 1 |
| + |
| +#define HAVE_ALLOCA_H 1 |
| + |
| +#define HAVE_BIND_TEXTDOMAIN_CODESET |
| + |
| +#define HAVE_C99_SNPRINTF 1 |
| + |
| +#define HAVE_C99_VSNPRINTF 1 |
| + |
| +#define HAVE_CLOCK_GETTIME 1 |
| + |
| +#define HAVE_CODESET 1 |
| + |
| +#define HAVE_DCGETTEXT 1 |
| + |
| +#define HAVE_DIRENT_H 1 |
| + |
| +#define HAVE_ENDMNTENT 1 |
| + |
| +#define HAVE_ENDSERVENT 1 |
| + |
| +#define HAVE_EVENTFD 1 |
| + |
| +#define HAVE_FALLOCATE 1 |
| + |
| +#define HAVE_FCHMOD 1 |
| + |
| +#define HAVE_FCHOWN 1 |
| + |
| +#define HAVE_FLOAT_H 1 |
| + |
| +#define HAVE_FSTAB_H 1 |
| + |
| +#define HAVE_FSYNC 1 |
| + |
| +#define HAVE_FUTEX 1 |
| + |
| +#define HAVE_GETAUXVAL 1 |
| + |
| +#define HAVE_GETC_UNLOCKED 1 |
| + |
| +#define HAVE_GETGRGID_R 1 |
| + |
| +#define HAVE_GETMNTENT_R 1 |
| + |
| +#define HAVE_GETPWUID_R 1 |
| + |
| +#define HAVE_GETRESUID 1 |
| + |
| +#define HAVE_GETTEXT 1 |
| + |
| +#define HAVE_GMTIME_R 1 |
| + |
| +#define HAVE_GRP_H 1 |
| + |
| +#define HAVE_HASMNTOPT 1 |
| + |
| +#define HAVE_IF_INDEXTONAME 1 |
| + |
| +#define HAVE_IF_NAMETOINDEX 1 |
| + |
| +#define HAVE_INOTIFY_INIT1 1 |
| + |
| +#define HAVE_INTMAX_T 1 |
| + |
| +#define HAVE_INTTYPES_H 1 |
| + |
| +#define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| + |
| +#define HAVE_IPV6 |
| + |
| +#define HAVE_IP_MREQN 1 |
| + |
| +#define HAVE_LANGINFO_ABALTMON 1 |
| + |
| +#define HAVE_LANGINFO_ALTMON 1 |
| + |
| +#define HAVE_LANGINFO_CODESET 1 |
| + |
| +#define HAVE_LANGINFO_OUTDIGIT 1 |
| + |
| +#define HAVE_LANGINFO_TIME 1 |
| + |
| +#define HAVE_LCHOWN 1 |
| + |
| +#define HAVE_LC_MESSAGES 1 |
| + |
| +#define HAVE_LIBELF 1 |
| + |
| +#undef HAVE_LIBMOUNT |
| + |
| +#define HAVE_LIMITS_H 1 |
| + |
| +#define HAVE_LINK 1 |
| + |
| +#define HAVE_LINUX_MAGIC_H 1 |
| + |
| +#define HAVE_LOCALE_H 1 |
| + |
| +#define HAVE_LOCALTIME_R 1 |
| + |
| +#define HAVE_LONG_DOUBLE 1 |
| + |
| +#define HAVE_LONG_LONG 1 |
| + |
| +#define HAVE_LSTAT 1 |
| + |
| +#define HAVE_MALLOC_H 1 |
| + |
| +#define HAVE_MBRTOWC 1 |
| + |
| +#define HAVE_MEMALIGN 1 |
| + |
| +#define HAVE_MEMORY_H 1 |
| + |
| +#define HAVE_MKOSTEMP 1 |
| + |
| +#define HAVE_MMAP 1 |
| + |
| +#define HAVE_MNTENT_H 1 |
| + |
| +#define HAVE_NETLINK 1 |
| + |
| +#define HAVE_NEWLOCALE 1 |
| + |
| +#define HAVE_OPEN_O_DIRECTORY 1 |
| + |
| +#define HAVE_PIPE2 1 |
| + |
| +#define HAVE_POLL 1 |
| + |
| +#define HAVE_POLL_H 1 |
| + |
| +#define HAVE_POSIX_MEMALIGN 1 |
| + |
| +#define HAVE_POSIX_SPAWN 1 |
| + |
| +#define HAVE_PRLIMIT 1 |
| + |
| +#define HAVE_PROC_SELF_CMDLINE |
| + |
| +#define HAVE_PTHREAD_ATTR_SETINHERITSCHED 1 |
| + |
| +#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 |
| + |
| +#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1 |
| + |
| +#define HAVE_PTHREAD_GETNAME_NP 1 |
| + |
| +#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1 |
| + |
| +#define HAVE_PTRDIFF_T 1 |
| + |
| +#define HAVE_PWD_H 1 |
| + |
| +#define HAVE_READLINK 1 |
| + |
| +#define HAVE_RECVMMSG 1 |
| + |
| +#define HAVE_RES_INIT 1 |
| + |
| +#define HAVE_RES_NCLOSE 1 |
| + |
| +#define HAVE_RES_NINIT 1 |
| + |
| +#define HAVE_RES_NQUERY 1 |
| + |
| +#define HAVE_RTLD_GLOBAL 1 |
| + |
| +#define HAVE_RTLD_LAZY 1 |
| + |
| +#define HAVE_RTLD_NEXT 1 |
| + |
| +#define HAVE_RTLD_NOW 1 |
| + |
| +#define HAVE_SCHED_H 1 |
| + |
| +#undef HAVE_SELINUX |
| + |
| +#define HAVE_SENDMMSG 1 |
| + |
| +#define HAVE_SETENV 1 |
| + |
| +#define HAVE_SETMNTENT 1 |
| + |
| +#define HAVE_SIG_ATOMIC_T 1 |
| + |
| +#define HAVE_SIOCGIFADDR /**/ |
| + |
| +#define HAVE_SNPRINTF 1 |
| + |
| +#define HAVE_SPAWN_H 1 |
| + |
| +#define HAVE_SPLICE 1 |
| + |
| +#define HAVE_STATFS 1 |
| + |
| +#define HAVE_STATVFS 1 |
| + |
| +#define HAVE_STATX 1 |
| + |
| +#define HAVE_STDATOMIC_H 1 |
| + |
| +#define HAVE_STDINT_H 1 |
| + |
| +#define HAVE_STDINT_H_WITH_UINTMAX 1 |
| + |
| +#define HAVE_STDLIB_H 1 |
| + |
| +#define HAVE_STPCPY 1 |
| + |
| +#define HAVE_STRCASECMP 1 |
| + |
| +#define HAVE_STRERROR_R 1 |
| + |
| +#define HAVE_STRINGS_H 1 |
| + |
| +#define HAVE_STRING_H 1 |
| + |
| +#define HAVE_STRNCASECMP 1 |
| + |
| +#define HAVE_STRNLEN 1 |
| + |
| +#define HAVE_STRSIGNAL 1 |
| + |
| +#define HAVE_STRTOD_L 1 |
| + |
| +#define HAVE_STRTOLL_L 1 |
| + |
| +#define HAVE_STRTOULL_L 1 |
| + |
| +#define HAVE_STRUCT_DIRENT_D_TYPE 1 |
| + |
| +#define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
| + |
| +#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 |
| + |
| +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| + |
| +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| + |
| +#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1 |
| + |
| +#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 |
| + |
| +#define HAVE_STRUCT_TM_TM_GMTOFF 1 |
| + |
| +#define HAVE_SYMLINK 1 |
| + |
| +#undef HAVE_SYSPROF |
| + |
| +#define HAVE_SYS_AUXV_H 1 |
| + |
| +#define HAVE_SYS_INOTIFY_H 1 |
| + |
| +#define HAVE_SYS_MOUNT_H 1 |
| + |
| +#define HAVE_SYS_PARAM_H 1 |
| + |
| +#define HAVE_SYS_RESOURCE_H 1 |
| + |
| +#define HAVE_SYS_SCHED_GETATTR 1 |
| + |
| +#define HAVE_SYS_SELECT_H 1 |
| + |
| +#define HAVE_SYS_STATFS_H 1 |
| + |
| +#define HAVE_SYS_STATVFS_H 1 |
| + |
| +#define HAVE_SYS_STAT_H 1 |
| + |
| +#define HAVE_SYS_SYSCTL_H 1 |
| + |
| +#define HAVE_SYS_TIMES_H 1 |
| + |
| +#define HAVE_SYS_TIME_H 1 |
| + |
| +#define HAVE_SYS_TYPES_H 1 |
| + |
| +#define HAVE_SYS_UIO_H 1 |
| + |
| +#define HAVE_SYS_VFS_H 1 |
| + |
| +#define HAVE_SYS_WAIT_H 1 |
| + |
| +#define HAVE_SYS_XATTR_H 1 |
| + |
| +#define HAVE_TERMIOS_H 1 |
| + |
| +#define HAVE_TIMEGM 1 |
| + |
| +#define HAVE_UINT128_T 1 |
| + |
| +#define HAVE_UNISTD_H 1 |
| + |
| +#define HAVE_UNIX98_PRINTF 1 |
| + |
| +#define HAVE_UNSETENV 1 |
| + |
| +#define HAVE_USELOCALE 1 |
| + |
| +#define HAVE_UTIMES 1 |
| + |
| +#define HAVE_VALLOC 1 |
| + |
| +#define HAVE_VALUES_H 1 |
| + |
| +#define HAVE_VASPRINTF 1 |
| + |
| +#define HAVE_VSNPRINTF 1 |
| + |
| +#define HAVE_WCHAR_H 1 |
| + |
| +#define HAVE_WCHAR_T 1 |
| + |
| +#define HAVE_WCRTOMB 1 |
| + |
| +#define HAVE_WCSLEN 1 |
| + |
| +#define HAVE_WCSNLEN 1 |
| + |
| +#define HAVE_WINT_T 1 |
| + |
| +#define HAVE_XATTR 1 |
| + |
| +#define MAJOR_IN_SYSMACROS 1 |
| + |
| +#define PACKAGE_BUGREPORT "https://gitlab.gnome.org/GNOME/glib/issues/new" |
| + |
| +#define PACKAGE_NAME "glib" |
| + |
| +#define PACKAGE_STRING "glib 2.67.2" |
| + |
| +#define PACKAGE_TARNAME "glib" |
| + |
| +#define PACKAGE_URL "" |
| + |
| +#define PACKAGE_VERSION "2.67.2" |
| + |
| +#define SIZEOF_CHAR 1 |
| + |
| +#define SIZEOF_INT 4 |
| + |
| +#define SIZEOF_LONG 8 |
| + |
| +#define SIZEOF_LONG_LONG 8 |
| + |
| +#define SIZEOF_SHORT 2 |
| + |
| +#define SIZEOF_SIZE_T 8 |
| + |
| +#define SIZEOF_SSIZE_T 8 |
| + |
| +#define SIZEOF_VOID_P 8 |
| + |
| +#define SIZEOF_WCHAR_T 4 |
| + |
| +#define STATFS_ARGS 2 |
| + |
| +/* Defined if strerror_r returns char * */ |
| +#define STRERROR_R_CHAR_P 1 |
| + |
| +#define THREADS_POSIX 1 |
| + |
| +#define USE_STATFS 1 |
| + |
| +#undef USE_SYSTEM_PCRE |
| + |
| +#define USE_SYSTEM_PRINTF |
| + |
| +#define _GLIB_EXTERN __attribute__((visibility("default"))) extern |
| + |
| +#define _GNU_SOURCE 1 |
| + |
| +#define gl_extern_inline |
| + |
| +#define gl_unused |
| + |
| diff --git a/glib/glibconfig.h b/glib/glibconfig.h |
| new file mode 100644 |
| index 000000000..b4185d96c |
| --- /dev/null |
| +++ b/glib/glibconfig.h |
| @@ -0,0 +1,215 @@ |
| +/* glibconfig.h |
| + * |
| + * This is a generated file. Please modify 'glibconfig.h.in' |
| + */ |
| + |
| +#ifndef __GLIBCONFIG_H__ |
| +#define __GLIBCONFIG_H__ |
| + |
| +#include "gmacros.h" |
| + |
| +#include <limits.h> |
| +#include <float.h> |
| +#define GLIB_HAVE_ALLOCA_H |
| + |
| +/* Specifies that GLib's g_print*() functions wrap the |
| + * system printf functions. This is useful to know, for example, |
| + * when using glibc's register_printf_function(). |
| + */ |
| +#define GLIB_USING_SYSTEM_PRINTF |
| + |
| +/* #undef GLIB_STATIC_COMPILATION */ |
| +/* #undef GOBJECT_STATIC_COMPILATION */ |
| + |
| +G_BEGIN_DECLS |
| + |
| +#define G_MINFLOAT FLT_MIN |
| +#define G_MAXFLOAT FLT_MAX |
| +#define G_MINDOUBLE DBL_MIN |
| +#define G_MAXDOUBLE DBL_MAX |
| +#define G_MINSHORT SHRT_MIN |
| +#define G_MAXSHORT SHRT_MAX |
| +#define G_MAXUSHORT USHRT_MAX |
| +#define G_MININT INT_MIN |
| +#define G_MAXINT INT_MAX |
| +#define G_MAXUINT UINT_MAX |
| +#define G_MINLONG LONG_MIN |
| +#define G_MAXLONG LONG_MAX |
| +#define G_MAXULONG ULONG_MAX |
| + |
| +typedef signed char gint8; |
| +typedef unsigned char guint8; |
| + |
| +typedef signed short gint16; |
| +typedef unsigned short guint16; |
| + |
| +#define G_GINT16_MODIFIER "h" |
| +#define G_GINT16_FORMAT "hi" |
| +#define G_GUINT16_FORMAT "hu" |
| + |
| + |
| +typedef signed int gint32; |
| +typedef unsigned int guint32; |
| + |
| +#define G_GINT32_MODIFIER "" |
| +#define G_GINT32_FORMAT "i" |
| +#define G_GUINT32_FORMAT "u" |
| + |
| + |
| +#define G_HAVE_GINT64 1 /* deprecated, always true */ |
| + |
| +typedef signed long gint64; |
| +typedef unsigned long guint64; |
| + |
| +#define G_GINT64_CONSTANT(val) (val##L) |
| +#define G_GUINT64_CONSTANT(val) (val##UL) |
| + |
| +#define G_GINT64_MODIFIER "l" |
| +#define G_GINT64_FORMAT "li" |
| +#define G_GUINT64_FORMAT "lu" |
| + |
| + |
| +#define GLIB_SIZEOF_VOID_P 8 |
| +#define GLIB_SIZEOF_LONG 8 |
| +#define GLIB_SIZEOF_SIZE_T 8 |
| +#define GLIB_SIZEOF_SSIZE_T 8 |
| + |
| +typedef signed long gssize; |
| +typedef unsigned long gsize; |
| +#define G_GSIZE_MODIFIER "l" |
| +#define G_GSSIZE_MODIFIER "l" |
| +#define G_GSIZE_FORMAT "lu" |
| +#define G_GSSIZE_FORMAT "li" |
| + |
| +#define G_MAXSIZE G_MAXULONG |
| +#define G_MINSSIZE G_MINLONG |
| +#define G_MAXSSIZE G_MAXLONG |
| + |
| +typedef gint64 goffset; |
| +#define G_MINOFFSET G_MININT64 |
| +#define G_MAXOFFSET G_MAXINT64 |
| + |
| +#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER |
| +#define G_GOFFSET_FORMAT G_GINT64_FORMAT |
| +#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val) |
| + |
| +#define G_POLLFD_FORMAT "%d" |
| + |
| +#define GPOINTER_TO_INT(p) ((gint) (glong) (p)) |
| +#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p)) |
| + |
| +#define GINT_TO_POINTER(i) ((gpointer) (glong) (i)) |
| +#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u)) |
| + |
| +typedef signed long gintptr; |
| +typedef unsigned long guintptr; |
| + |
| +#define G_GINTPTR_MODIFIER "l" |
| +#define G_GINTPTR_FORMAT "li" |
| +#define G_GUINTPTR_FORMAT "lu" |
| + |
| +#define GLIB_MAJOR_VERSION 2 |
| +#define GLIB_MINOR_VERSION 67 |
| +#define GLIB_MICRO_VERSION 2 |
| + |
| +#define G_OS_UNIX |
| + |
| +#define G_VA_COPY va_copy |
| +#define G_VA_COPY_AS_ARRAY 1 |
| + |
| + |
| +#ifndef __cplusplus |
| +# define G_HAVE_ISO_VARARGS 1 |
| +#endif |
| + |
| +#ifdef __cplusplus |
| +# define G_HAVE_ISO_VARARGS 1 |
| +#endif |
| + |
| +/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi |
| + * is passed ISO vararg support is turned off, and there is no work |
| + * around to turn it on, so we unconditionally turn it off. |
| + */ |
| +#if __GNUC__ == 2 && __GNUC_MINOR__ == 95 |
| +# undef G_HAVE_ISO_VARARGS |
| +#endif |
| + |
| +#define G_HAVE_GROWING_STACK 0 |
| +#define G_HAVE_GNUC_VISIBILITY 1 |
| + |
| +#ifndef _MSC_VER |
| +# define G_HAVE_GNUC_VARARGS 1 |
| +#endif |
| + |
| +#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) |
| +#define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) |
| +#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) |
| +#define G_GNUC_INTERNAL __hidden |
| +#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY) |
| +#define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) |
| +#else |
| +#define G_GNUC_INTERNAL |
| +#endif |
| + |
| +#define G_THREADS_ENABLED |
| +#define G_THREADS_IMPL_POSIX |
| + |
| +#define G_ATOMIC_LOCK_FREE |
| + |
| +#define GINT16_TO_LE(val) ((gint16) (val)) |
| +#define GUINT16_TO_LE(val) ((guint16) (val)) |
| +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val)) |
| +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val)) |
| + |
| +#define GINT32_TO_LE(val) ((gint32) (val)) |
| +#define GUINT32_TO_LE(val) ((guint32) (val)) |
| +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val)) |
| +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val)) |
| + |
| +#define GINT64_TO_LE(val) ((gint64) (val)) |
| +#define GUINT64_TO_LE(val) ((guint64) (val)) |
| +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val)) |
| +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val)) |
| + |
| +#define GLONG_TO_LE(val) ((glong) GINT64_TO_LE (val)) |
| +#define GULONG_TO_LE(val) ((gulong) GUINT64_TO_LE (val)) |
| +#define GLONG_TO_BE(val) ((glong) GINT64_TO_BE (val)) |
| +#define GULONG_TO_BE(val) ((gulong) GUINT64_TO_BE (val)) |
| +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val)) |
| +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val)) |
| +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val)) |
| +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val)) |
| +#define GSIZE_TO_LE(val) ((gsize) GUINT64_TO_LE (val)) |
| +#define GSSIZE_TO_LE(val) ((gssize) GINT64_TO_LE (val)) |
| +#define GSIZE_TO_BE(val) ((gsize) GUINT64_TO_BE (val)) |
| +#define GSSIZE_TO_BE(val) ((gssize) GINT64_TO_BE (val)) |
| +#define G_BYTE_ORDER G_LITTLE_ENDIAN |
| + |
| +#define GLIB_SYSDEF_POLLIN =1 |
| +#define GLIB_SYSDEF_POLLOUT =4 |
| +#define GLIB_SYSDEF_POLLPRI =2 |
| +#define GLIB_SYSDEF_POLLHUP =16 |
| +#define GLIB_SYSDEF_POLLERR =8 |
| +#define GLIB_SYSDEF_POLLNVAL =32 |
| + |
| +#define G_MODULE_SUFFIX "so" |
| + |
| +typedef int GPid; |
| +#define G_PID_FORMAT "i" |
| + |
| +#define GLIB_SYSDEF_AF_UNIX 1 |
| +#define GLIB_SYSDEF_AF_INET 2 |
| +#define GLIB_SYSDEF_AF_INET6 10 |
| + |
| +#define GLIB_SYSDEF_MSG_OOB 1 |
| +#define GLIB_SYSDEF_MSG_PEEK 2 |
| +#define GLIB_SYSDEF_MSG_DONTROUTE 4 |
| + |
| +#define G_DIR_SEPARATOR '/' |
| +#define G_DIR_SEPARATOR_S "/" |
| +#define G_SEARCHPATH_SEPARATOR ':' |
| +#define G_SEARCHPATH_SEPARATOR_S ":" |
| + |
| +G_END_DECLS |
| + |
| +#endif /* __GLIBCONFIG_H__ */ |
| -- |
| 2.25.1 |
| |