blob: 10b834b24606ae4062b183ccf3ef49e254db50e7 [file] [log] [blame]
Lorenz Brun0de18932021-03-11 00:36:48 +01001Copyright 2020 The Monogon Project Authors.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14
15
16From 5a0089d8e8be0905bcdc5604878c65eeca6f532c Mon Sep 17 00:00:00 2001
17From: Lorenz Brun <lorenz@nexantic.com>
18Date: Thu, 18 Feb 2021 17:39:24 +0100
19Subject: [PATCH 1/2] Add Bazel support
20
21---
22 BUILD | 0
23 glib/BUILD | 202 +++++++++++++++++++++++
24 glib/config.h | 412 ++++++++++++++++++++++++++++++++++++++++++++++
25 glib/glibconfig.h | 215 ++++++++++++++++++++++++
26 4 files changed, 829 insertions(+)
27 create mode 100644 BUILD
28 create mode 100644 glib/BUILD
29 create mode 100644 glib/config.h
30 create mode 100644 glib/glibconfig.h
31
32diff --git a/BUILD b/BUILD
33new file mode 100644
34index 000000000..e69de29bb
35diff --git a/glib/BUILD b/glib/BUILD
36new file mode 100644
37index 000000000..ecb524ecc
38--- /dev/null
39+++ b/glib/BUILD
40@@ -0,0 +1,202 @@
41+cc_library(
42+ name = "glib",
43+ srcs = [
44+ "garcbox.c",
45+ "garray.c",
46+ "gasyncqueue.c",
47+ "gatomic.c",
48+ "gbacktrace.c",
49+ "gbase64.c",
50+ "gbitlock.c",
51+ "gbookmarkfile.c",
52+ "gbytes.c",
53+ "gcharset.c",
54+ "gchecksum.c",
55+ "gconvert.c",
56+ "gdataset.c",
57+ "gdate.c",
58+ "gdatetime.c",
59+ "gdir.c",
60+ "genviron.c",
61+ "gerror.c",
62+ "gfileutils.c",
63+ "ggettext.c",
64+ "ghash.c",
65+ "ghmac.c",
66+ "ghook.c",
67+ "ghostutils.c",
68+ "giochannel.c",
69+ "gkeyfile.c",
70+ "glib-init.c",
71+ "glib-private.c",
72+ "glist.c",
73+ "gmain.c",
74+ "gmappedfile.c",
75+ "gmarkup.c",
76+ "gmem.c",
77+ "gmessages.c",
78+ "gnode.c",
79+ "goption.c",
80+ "gpattern.c",
81+ "gpoll.c",
82+ "gprimes.c",
83+ "gprintf.c",
84+ "gqsort.c",
85+ "gquark.c",
86+ "gqueue.c",
87+ "grand.c",
88+ "grcbox.c",
89+ "grefcount.c",
90+ "grefstring.c",
91+ "gregex.c",
92+ "gscanner.c",
93+ "gsequence.c",
94+ "gshell.c",
95+ "gslice.c",
96+ "gslist.c",
97+ "gstdio.c",
98+ "gstrfuncs.c",
99+ "gstring.c",
100+ "gstringchunk.c",
101+ "gstrvbuilder.c",
102+ "gtestutils.c",
103+ "gthread.c",
104+ "gthreadpool.c",
105+ "gtimer.c",
106+ "gtimezone.c",
107+ "gtrace.c",
108+ "gtranslit.c",
109+ "gtrashstack.c",
110+ "gtree.c",
111+ "gunibreak.c",
112+ "gunicollate.c",
113+ "gunidecomp.c",
114+ "guniprop.c",
115+ "guri.c",
116+ "gutf8.c",
117+ "gutils.c",
118+ "guuid.c",
119+ "gvariant.c",
120+ "gvariant-core.c",
121+ "gvariant-parser.c",
122+ "gvariant-serialiser.c",
123+ "gvarianttype.c",
124+ "gvarianttypeinfo.c",
125+ "gversion.c",
126+ "gwakeup.c",
127+ "libcharset/localcharset.c",
128+ ] + [
129+ # Unix-specific
130+ "glib-unix.c",
131+ "gspawn.c",
132+ "giounix.c",
133+ "gthread-posix.c",
134+ ] + glob([
135+ "*.h",
136+ "deprecated/*.h",
137+ "libcharset/*.h",
138+ "pcre/*.h",
139+ "pcre/*.c",
140+ ]),
141+ hdrs = [
142+ "glib.h",
143+ # Only allowed to be included by glib.h, don't directly include them
144+ "deprecated/gallocator.h",
145+ "deprecated/gcache.h",
146+ "deprecated/gcompletion.h",
147+ "deprecated/gmain.h",
148+ "deprecated/grel.h",
149+ "deprecated/gthread.h",
150+ "galloca.h",
151+ "garray.h",
152+ "gasyncqueue.h",
153+ "gatomic.h",
154+ "gbacktrace.h",
155+ "gbase64.h",
156+ "gbitlock.h",
157+ "gbookmarkfile.h",
158+ "gbytes.h",
159+ "gcharset.h",
160+ "gchecksum.h",
161+ "gconvert.h",
162+ "gdataset.h",
163+ "gdate.h",
164+ "gdatetime.h",
165+ "gdir.h",
166+ "genviron.h",
167+ "gerror.h",
168+ "gfileutils.h",
169+ "ggettext.h",
170+ "ghash.h",
171+ "ghmac.h",
172+ "ghook.h",
173+ "ghostutils.h",
174+ "giochannel.h",
175+ "gkeyfile.h",
176+ "glib-autocleanups.h",
177+ "glist.h",
178+ "gmacros.h",
179+ "gmain.h",
180+ "gmappedfile.h",
181+ "gmarkup.h",
182+ "gmem.h",
183+ "gmessages.h",
184+ "gnode.h",
185+ "goption.h",
186+ "gpattern.h",
187+ "gpoll.h",
188+ "gprimes.h",
189+ "gqsort.h",
190+ "gquark.h",
191+ "gqueue.h",
192+ "grand.h",
193+ "grcbox.h",
194+ "grefcount.h",
195+ "grefstring.h",
196+ "gregex.h",
197+ "gscanner.h",
198+ "gsequence.h",
199+ "gshell.h",
200+ "gslice.h",
201+ "gslist.h",
202+ "gspawn.h",
203+ "gstrfuncs.h",
204+ "gstring.h",
205+ "gstringchunk.h",
206+ "gstrvbuilder.h",
207+ "gtestutils.h",
208+ "gthread.h",
209+ "gthreadpool.h",
210+ "gtimer.h",
211+ "gtimezone.h",
212+ "gtrashstack.h",
213+ "gtree.h",
214+ "gtypes.h",
215+ "gunicode.h",
216+ "guri.h",
217+ "gutils.h",
218+ "guuid.h",
219+ "gvariant.h",
220+ "gvarianttype.h",
221+ "gversion.h",
222+ "gversionmacros.h",
223+ ],
224+ local_defines = [
225+ "HAVE_MEMMOVE=1",
226+ "SUPPORT_UCP=1",
227+ "SUPPORT_UTF=1",
228+ "SUPPORT_UTF8=1",
229+ "NEWLINE=-1",
230+ "MATCH_LIMIT=10000000",
231+ "MATCH_LIMIT_RECURSION=8192",
232+ "MAX_NAME_SIZE=32",
233+ "MAX_NAME_COUNT=10000",
234+ "MAX_DUPLENGTH=30000",
235+ "LINK_SIZE=2",
236+ "POSIX_MALLOC_THRESHOLD=10",
237+ "PCRE_STATIC=1",
238+ "GLIB_COMPILATION=1",
239+ "GLIB_CHARSETALIAS_DIR=\\\"/nonexistent\\\"",
240+ ],
241+ visibility = ["//visibility:public"],
242+)
243diff --git a/glib/config.h b/glib/config.h
244new file mode 100644
245index 000000000..a13711316
246--- /dev/null
247+++ b/glib/config.h
248@@ -0,0 +1,412 @@
249+/*
250+ * Autogenerated by the Meson build system.
251+ * Do not edit, your changes will be lost.
252+ */
253+
254+#pragma once
255+
256+#define ALIGNOF_GUINT32 4
257+
258+#define ALIGNOF_GUINT64 8
259+
260+#define ALIGNOF_UNSIGNED_LONG 8
261+
262+#define ENABLE_NLS 1
263+
264+#define EXEEXT
265+
266+#define GETTEXT_PACKAGE "glib20"
267+
268+#define GLIB_BINARY_AGE 6702
269+
270+#define GLIB_INTERFACE_AGE 0
271+
272+#define GLIB_LOCALE_DIR "/usr/local/share/locale"
273+
274+#define GLIB_MAJOR_VERSION 2
275+
276+#define GLIB_MICRO_VERSION 2
277+
278+#define GLIB_MINOR_VERSION 67
279+
280+#define G_VA_COPY va_copy
281+
282+#define G_VA_COPY_AS_ARRAY 1
283+
284+#define HAVE_ALLOCA_H 1
285+
286+#define HAVE_BIND_TEXTDOMAIN_CODESET
287+
288+#define HAVE_C99_SNPRINTF 1
289+
290+#define HAVE_C99_VSNPRINTF 1
291+
292+#define HAVE_CLOCK_GETTIME 1
293+
294+#define HAVE_CODESET 1
295+
296+#define HAVE_DCGETTEXT 1
297+
298+#define HAVE_DIRENT_H 1
299+
300+#define HAVE_ENDMNTENT 1
301+
302+#define HAVE_ENDSERVENT 1
303+
304+#define HAVE_EVENTFD 1
305+
306+#define HAVE_FALLOCATE 1
307+
308+#define HAVE_FCHMOD 1
309+
310+#define HAVE_FCHOWN 1
311+
312+#define HAVE_FLOAT_H 1
313+
314+#define HAVE_FSTAB_H 1
315+
316+#define HAVE_FSYNC 1
317+
318+#define HAVE_FUTEX 1
319+
320+#define HAVE_GETAUXVAL 1
321+
322+#define HAVE_GETC_UNLOCKED 1
323+
324+#define HAVE_GETGRGID_R 1
325+
326+#define HAVE_GETMNTENT_R 1
327+
328+#define HAVE_GETPWUID_R 1
329+
330+#define HAVE_GETRESUID 1
331+
332+#define HAVE_GETTEXT 1
333+
334+#define HAVE_GMTIME_R 1
335+
336+#define HAVE_GRP_H 1
337+
338+#define HAVE_HASMNTOPT 1
339+
340+#define HAVE_IF_INDEXTONAME 1
341+
342+#define HAVE_IF_NAMETOINDEX 1
343+
344+#define HAVE_INOTIFY_INIT1 1
345+
346+#define HAVE_INTMAX_T 1
347+
348+#define HAVE_INTTYPES_H 1
349+
350+#define HAVE_INTTYPES_H_WITH_UINTMAX 1
351+
352+#define HAVE_IPV6
353+
354+#define HAVE_IP_MREQN 1
355+
356+#define HAVE_LANGINFO_ABALTMON 1
357+
358+#define HAVE_LANGINFO_ALTMON 1
359+
360+#define HAVE_LANGINFO_CODESET 1
361+
362+#define HAVE_LANGINFO_OUTDIGIT 1
363+
364+#define HAVE_LANGINFO_TIME 1
365+
366+#define HAVE_LCHOWN 1
367+
368+#define HAVE_LC_MESSAGES 1
369+
370+#define HAVE_LIBELF 1
371+
372+#undef HAVE_LIBMOUNT
373+
374+#define HAVE_LIMITS_H 1
375+
376+#define HAVE_LINK 1
377+
378+#define HAVE_LINUX_MAGIC_H 1
379+
380+#define HAVE_LOCALE_H 1
381+
382+#define HAVE_LOCALTIME_R 1
383+
384+#define HAVE_LONG_DOUBLE 1
385+
386+#define HAVE_LONG_LONG 1
387+
388+#define HAVE_LSTAT 1
389+
390+#define HAVE_MALLOC_H 1
391+
392+#define HAVE_MBRTOWC 1
393+
394+#define HAVE_MEMALIGN 1
395+
396+#define HAVE_MEMORY_H 1
397+
398+#define HAVE_MKOSTEMP 1
399+
400+#define HAVE_MMAP 1
401+
402+#define HAVE_MNTENT_H 1
403+
404+#define HAVE_NETLINK 1
405+
406+#define HAVE_NEWLOCALE 1
407+
408+#define HAVE_OPEN_O_DIRECTORY 1
409+
410+#define HAVE_PIPE2 1
411+
412+#define HAVE_POLL 1
413+
414+#define HAVE_POLL_H 1
415+
416+#define HAVE_POSIX_MEMALIGN 1
417+
418+#define HAVE_POSIX_SPAWN 1
419+
420+#define HAVE_PRLIMIT 1
421+
422+#define HAVE_PROC_SELF_CMDLINE
423+
424+#define HAVE_PTHREAD_ATTR_SETINHERITSCHED 1
425+
426+#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
427+
428+#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1
429+
430+#define HAVE_PTHREAD_GETNAME_NP 1
431+
432+#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1
433+
434+#define HAVE_PTRDIFF_T 1
435+
436+#define HAVE_PWD_H 1
437+
438+#define HAVE_READLINK 1
439+
440+#define HAVE_RECVMMSG 1
441+
442+#define HAVE_RES_INIT 1
443+
444+#define HAVE_RES_NCLOSE 1
445+
446+#define HAVE_RES_NINIT 1
447+
448+#define HAVE_RES_NQUERY 1
449+
450+#define HAVE_RTLD_GLOBAL 1
451+
452+#define HAVE_RTLD_LAZY 1
453+
454+#define HAVE_RTLD_NEXT 1
455+
456+#define HAVE_RTLD_NOW 1
457+
458+#define HAVE_SCHED_H 1
459+
460+#undef HAVE_SELINUX
461+
462+#define HAVE_SENDMMSG 1
463+
464+#define HAVE_SETENV 1
465+
466+#define HAVE_SETMNTENT 1
467+
468+#define HAVE_SIG_ATOMIC_T 1
469+
470+#define HAVE_SIOCGIFADDR /**/
471+
472+#define HAVE_SNPRINTF 1
473+
474+#define HAVE_SPAWN_H 1
475+
476+#define HAVE_SPLICE 1
477+
478+#define HAVE_STATFS 1
479+
480+#define HAVE_STATVFS 1
481+
482+#define HAVE_STATX 1
483+
484+#define HAVE_STDATOMIC_H 1
485+
486+#define HAVE_STDINT_H 1
487+
488+#define HAVE_STDINT_H_WITH_UINTMAX 1
489+
490+#define HAVE_STDLIB_H 1
491+
492+#define HAVE_STPCPY 1
493+
494+#define HAVE_STRCASECMP 1
495+
496+#define HAVE_STRERROR_R 1
497+
498+#define HAVE_STRINGS_H 1
499+
500+#define HAVE_STRING_H 1
501+
502+#define HAVE_STRNCASECMP 1
503+
504+#define HAVE_STRNLEN 1
505+
506+#define HAVE_STRSIGNAL 1
507+
508+#define HAVE_STRTOD_L 1
509+
510+#define HAVE_STRTOLL_L 1
511+
512+#define HAVE_STRTOULL_L 1
513+
514+#define HAVE_STRUCT_DIRENT_D_TYPE 1
515+
516+#define HAVE_STRUCT_STATFS_F_BAVAIL 1
517+
518+#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
519+
520+#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
521+
522+#define HAVE_STRUCT_STAT_ST_BLOCKS 1
523+
524+#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
525+
526+#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
527+
528+#define HAVE_STRUCT_TM_TM_GMTOFF 1
529+
530+#define HAVE_SYMLINK 1
531+
532+#undef HAVE_SYSPROF
533+
534+#define HAVE_SYS_AUXV_H 1
535+
536+#define HAVE_SYS_INOTIFY_H 1
537+
538+#define HAVE_SYS_MOUNT_H 1
539+
540+#define HAVE_SYS_PARAM_H 1
541+
542+#define HAVE_SYS_RESOURCE_H 1
543+
544+#define HAVE_SYS_SCHED_GETATTR 1
545+
546+#define HAVE_SYS_SELECT_H 1
547+
548+#define HAVE_SYS_STATFS_H 1
549+
550+#define HAVE_SYS_STATVFS_H 1
551+
552+#define HAVE_SYS_STAT_H 1
553+
554+#define HAVE_SYS_SYSCTL_H 1
555+
556+#define HAVE_SYS_TIMES_H 1
557+
558+#define HAVE_SYS_TIME_H 1
559+
560+#define HAVE_SYS_TYPES_H 1
561+
562+#define HAVE_SYS_UIO_H 1
563+
564+#define HAVE_SYS_VFS_H 1
565+
566+#define HAVE_SYS_WAIT_H 1
567+
568+#define HAVE_SYS_XATTR_H 1
569+
570+#define HAVE_TERMIOS_H 1
571+
572+#define HAVE_TIMEGM 1
573+
574+#define HAVE_UINT128_T 1
575+
576+#define HAVE_UNISTD_H 1
577+
578+#define HAVE_UNIX98_PRINTF 1
579+
580+#define HAVE_UNSETENV 1
581+
582+#define HAVE_USELOCALE 1
583+
584+#define HAVE_UTIMES 1
585+
586+#define HAVE_VALLOC 1
587+
588+#define HAVE_VALUES_H 1
589+
590+#define HAVE_VASPRINTF 1
591+
592+#define HAVE_VSNPRINTF 1
593+
594+#define HAVE_WCHAR_H 1
595+
596+#define HAVE_WCHAR_T 1
597+
598+#define HAVE_WCRTOMB 1
599+
600+#define HAVE_WCSLEN 1
601+
602+#define HAVE_WCSNLEN 1
603+
604+#define HAVE_WINT_T 1
605+
606+#define HAVE_XATTR 1
607+
608+#define MAJOR_IN_SYSMACROS 1
609+
610+#define PACKAGE_BUGREPORT "https://gitlab.gnome.org/GNOME/glib/issues/new"
611+
612+#define PACKAGE_NAME "glib"
613+
614+#define PACKAGE_STRING "glib 2.67.2"
615+
616+#define PACKAGE_TARNAME "glib"
617+
618+#define PACKAGE_URL ""
619+
620+#define PACKAGE_VERSION "2.67.2"
621+
622+#define SIZEOF_CHAR 1
623+
624+#define SIZEOF_INT 4
625+
626+#define SIZEOF_LONG 8
627+
628+#define SIZEOF_LONG_LONG 8
629+
630+#define SIZEOF_SHORT 2
631+
632+#define SIZEOF_SIZE_T 8
633+
634+#define SIZEOF_SSIZE_T 8
635+
636+#define SIZEOF_VOID_P 8
637+
638+#define SIZEOF_WCHAR_T 4
639+
640+#define STATFS_ARGS 2
641+
642+/* Defined if strerror_r returns char * */
643+#define STRERROR_R_CHAR_P 1
644+
645+#define THREADS_POSIX 1
646+
647+#define USE_STATFS 1
648+
649+#undef USE_SYSTEM_PCRE
650+
651+#define USE_SYSTEM_PRINTF
652+
653+#define _GLIB_EXTERN __attribute__((visibility("default"))) extern
654+
655+#define _GNU_SOURCE 1
656+
657+#define gl_extern_inline
658+
659+#define gl_unused
660+
661diff --git a/glib/glibconfig.h b/glib/glibconfig.h
662new file mode 100644
663index 000000000..b4185d96c
664--- /dev/null
665+++ b/glib/glibconfig.h
666@@ -0,0 +1,215 @@
667+/* glibconfig.h
668+ *
669+ * This is a generated file. Please modify 'glibconfig.h.in'
670+ */
671+
672+#ifndef __GLIBCONFIG_H__
673+#define __GLIBCONFIG_H__
674+
675+#include "gmacros.h"
676+
677+#include <limits.h>
678+#include <float.h>
679+#define GLIB_HAVE_ALLOCA_H
680+
681+/* Specifies that GLib's g_print*() functions wrap the
682+ * system printf functions. This is useful to know, for example,
683+ * when using glibc's register_printf_function().
684+ */
685+#define GLIB_USING_SYSTEM_PRINTF
686+
687+/* #undef GLIB_STATIC_COMPILATION */
688+/* #undef GOBJECT_STATIC_COMPILATION */
689+
690+G_BEGIN_DECLS
691+
692+#define G_MINFLOAT FLT_MIN
693+#define G_MAXFLOAT FLT_MAX
694+#define G_MINDOUBLE DBL_MIN
695+#define G_MAXDOUBLE DBL_MAX
696+#define G_MINSHORT SHRT_MIN
697+#define G_MAXSHORT SHRT_MAX
698+#define G_MAXUSHORT USHRT_MAX
699+#define G_MININT INT_MIN
700+#define G_MAXINT INT_MAX
701+#define G_MAXUINT UINT_MAX
702+#define G_MINLONG LONG_MIN
703+#define G_MAXLONG LONG_MAX
704+#define G_MAXULONG ULONG_MAX
705+
706+typedef signed char gint8;
707+typedef unsigned char guint8;
708+
709+typedef signed short gint16;
710+typedef unsigned short guint16;
711+
712+#define G_GINT16_MODIFIER "h"
713+#define G_GINT16_FORMAT "hi"
714+#define G_GUINT16_FORMAT "hu"
715+
716+
717+typedef signed int gint32;
718+typedef unsigned int guint32;
719+
720+#define G_GINT32_MODIFIER ""
721+#define G_GINT32_FORMAT "i"
722+#define G_GUINT32_FORMAT "u"
723+
724+
725+#define G_HAVE_GINT64 1 /* deprecated, always true */
726+
727+typedef signed long gint64;
728+typedef unsigned long guint64;
729+
730+#define G_GINT64_CONSTANT(val) (val##L)
731+#define G_GUINT64_CONSTANT(val) (val##UL)
732+
733+#define G_GINT64_MODIFIER "l"
734+#define G_GINT64_FORMAT "li"
735+#define G_GUINT64_FORMAT "lu"
736+
737+
738+#define GLIB_SIZEOF_VOID_P 8
739+#define GLIB_SIZEOF_LONG 8
740+#define GLIB_SIZEOF_SIZE_T 8
741+#define GLIB_SIZEOF_SSIZE_T 8
742+
743+typedef signed long gssize;
744+typedef unsigned long gsize;
745+#define G_GSIZE_MODIFIER "l"
746+#define G_GSSIZE_MODIFIER "l"
747+#define G_GSIZE_FORMAT "lu"
748+#define G_GSSIZE_FORMAT "li"
749+
750+#define G_MAXSIZE G_MAXULONG
751+#define G_MINSSIZE G_MINLONG
752+#define G_MAXSSIZE G_MAXLONG
753+
754+typedef gint64 goffset;
755+#define G_MINOFFSET G_MININT64
756+#define G_MAXOFFSET G_MAXINT64
757+
758+#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
759+#define G_GOFFSET_FORMAT G_GINT64_FORMAT
760+#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
761+
762+#define G_POLLFD_FORMAT "%d"
763+
764+#define GPOINTER_TO_INT(p) ((gint) (glong) (p))
765+#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p))
766+
767+#define GINT_TO_POINTER(i) ((gpointer) (glong) (i))
768+#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
769+
770+typedef signed long gintptr;
771+typedef unsigned long guintptr;
772+
773+#define G_GINTPTR_MODIFIER "l"
774+#define G_GINTPTR_FORMAT "li"
775+#define G_GUINTPTR_FORMAT "lu"
776+
777+#define GLIB_MAJOR_VERSION 2
778+#define GLIB_MINOR_VERSION 67
779+#define GLIB_MICRO_VERSION 2
780+
781+#define G_OS_UNIX
782+
783+#define G_VA_COPY va_copy
784+#define G_VA_COPY_AS_ARRAY 1
785+
786+
787+#ifndef __cplusplus
788+# define G_HAVE_ISO_VARARGS 1
789+#endif
790+
791+#ifdef __cplusplus
792+# define G_HAVE_ISO_VARARGS 1
793+#endif
794+
795+/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
796+ * is passed ISO vararg support is turned off, and there is no work
797+ * around to turn it on, so we unconditionally turn it off.
798+ */
799+#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
800+# undef G_HAVE_ISO_VARARGS
801+#endif
802+
803+#define G_HAVE_GROWING_STACK 0
804+#define G_HAVE_GNUC_VISIBILITY 1
805+
806+#ifndef _MSC_VER
807+# define G_HAVE_GNUC_VARARGS 1
808+#endif
809+
810+#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
811+#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
812+#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
813+#define G_GNUC_INTERNAL __hidden
814+#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
815+#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
816+#else
817+#define G_GNUC_INTERNAL
818+#endif
819+
820+#define G_THREADS_ENABLED
821+#define G_THREADS_IMPL_POSIX
822+
823+#define G_ATOMIC_LOCK_FREE
824+
825+#define GINT16_TO_LE(val) ((gint16) (val))
826+#define GUINT16_TO_LE(val) ((guint16) (val))
827+#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
828+#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
829+
830+#define GINT32_TO_LE(val) ((gint32) (val))
831+#define GUINT32_TO_LE(val) ((guint32) (val))
832+#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
833+#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
834+
835+#define GINT64_TO_LE(val) ((gint64) (val))
836+#define GUINT64_TO_LE(val) ((guint64) (val))
837+#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
838+#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
839+
840+#define GLONG_TO_LE(val) ((glong) GINT64_TO_LE (val))
841+#define GULONG_TO_LE(val) ((gulong) GUINT64_TO_LE (val))
842+#define GLONG_TO_BE(val) ((glong) GINT64_TO_BE (val))
843+#define GULONG_TO_BE(val) ((gulong) GUINT64_TO_BE (val))
844+#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
845+#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
846+#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
847+#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
848+#define GSIZE_TO_LE(val) ((gsize) GUINT64_TO_LE (val))
849+#define GSSIZE_TO_LE(val) ((gssize) GINT64_TO_LE (val))
850+#define GSIZE_TO_BE(val) ((gsize) GUINT64_TO_BE (val))
851+#define GSSIZE_TO_BE(val) ((gssize) GINT64_TO_BE (val))
852+#define G_BYTE_ORDER G_LITTLE_ENDIAN
853+
854+#define GLIB_SYSDEF_POLLIN =1
855+#define GLIB_SYSDEF_POLLOUT =4
856+#define GLIB_SYSDEF_POLLPRI =2
857+#define GLIB_SYSDEF_POLLHUP =16
858+#define GLIB_SYSDEF_POLLERR =8
859+#define GLIB_SYSDEF_POLLNVAL =32
860+
861+#define G_MODULE_SUFFIX "so"
862+
863+typedef int GPid;
864+#define G_PID_FORMAT "i"
865+
866+#define GLIB_SYSDEF_AF_UNIX 1
867+#define GLIB_SYSDEF_AF_INET 2
868+#define GLIB_SYSDEF_AF_INET6 10
869+
870+#define GLIB_SYSDEF_MSG_OOB 1
871+#define GLIB_SYSDEF_MSG_PEEK 2
872+#define GLIB_SYSDEF_MSG_DONTROUTE 4
873+
874+#define G_DIR_SEPARATOR '/'
875+#define G_DIR_SEPARATOR_S "/"
876+#define G_SEARCHPATH_SEPARATOR ':'
877+#define G_SEARCHPATH_SEPARATOR_S ":"
878+
879+G_END_DECLS
880+
881+#endif /* __GLIBCONFIG_H__ */
882--
8832.25.1
884