1 --- glib-2.82.0/glib/glibconfig.h.in.orig
2 +++ glib-2.82.0/glib/glibconfig.h.in
4 #define GLIB_SIZEOF_SIZE_T @glib_size_t@
5 #define GLIB_SIZEOF_SSIZE_T @glib_ssize_t@
7 -typedef signed @glib_size_type_define@ gssize;
8 -typedef unsigned @glib_size_type_define@ gsize;
9 -#define G_GSIZE_MODIFIER @gsize_modifier@
10 -#define G_GSSIZE_MODIFIER @gssize_modifier@
11 -#define G_GSIZE_FORMAT @gsize_format@
12 -#define G_GSSIZE_FORMAT @gssize_format@
13 +#if (defined (__amd64) || defined(__sparcv9))
14 +typedef signed long gssize;
15 +typedef unsigned long gsize;
16 +#define G_GSIZE_MODIFIER "l"
17 +#define G_GSSIZE_MODIFIER "l"
18 +#define G_GSIZE_FORMAT "lu"
19 +#define G_GSSIZE_FORMAT "li"
21 +typedef signed int gssize;
22 +typedef unsigned int gsize;
23 +#define G_GSIZE_MODIFIER ""
24 +#define G_GSSIZE_MODIFIER ""
25 +#define G_GSIZE_FORMAT "u"
26 +#define G_GSSIZE_FORMAT "i"
29 #define G_MAXSIZE G_MAXU@glib_msize_type@
30 #define G_MINSSIZE G_MIN@glib_msize_type@