--- a/glibconfig.h 2018-04-12 20:05:39.000000000 -0700 +++ b/glibconfig.h 2017-12-18 17:18:48.000000000 -0800 @@ -48,42 +48,19 @@ #define G_GUINT32_FORMAT "u" #define G_HAVE_GINT64 1 /* deprecated, always true */ -#ifdef __LP64__ -typedef signed long gint64; -typedef unsigned long guint64; -#else -G_GNUC_EXTENSION typedef signed long long gint64; -G_GNUC_EXTENSION typedef unsigned long long guint64; -#endif +typedef signed long long gint64; +typedef unsigned long long guint64; -#ifdef __LP64__ -#define G_GINT64_CONSTANT(val) (val##L) -#define G_GUINT64_CONSTANT(val) (val##UL) -#else -#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL)) -#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL)) -#endif -#ifdef __LP64__ -#define G_GINT64_MODIFIER "l" -#define G_GINT64_FORMAT "li" -#define G_GUINT64_FORMAT "lu" -#else +#define G_GINT64_CONSTANT(val) (val##LL) +#define G_GUINT64_CONSTANT(val) (val##ULL) #define G_GINT64_MODIFIER "ll" #define G_GINT64_FORMAT "lli" #define G_GUINT64_FORMAT "llu" -#endif -#ifdef __LP64__ #define GLIB_SIZEOF_VOID_P 8 #define GLIB_SIZEOF_LONG 8 #define GLIB_SIZEOF_SIZE_T 8 #define GLIB_SIZEOF_SSIZE_T 8 -#else -#define GLIB_SIZEOF_VOID_P 4 -#define GLIB_SIZEOF_LONG 4 -#define GLIB_SIZEOF_SIZE_T 4 -#define GLIB_SIZEOF_SSIZE_T 4 -#endif typedef signed long gssize; typedef unsigned long gsize; @@ -107,39 +84,18 @@ #define G_POLLFD_FORMAT "%d" -#ifdef __LP64__ -#define GPOINTER_TO_INT(p) ((gint) (glong) (p)) -#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p)) -#else -#define GPOINTER_TO_INT(p) ((gint) (gint) (p)) -#define GPOINTER_TO_UINT(p) ((guint) (guint) (p)) -#endif +#define GPOINTER_TO_INT(p) ((gint) (gint64) (p)) +#define GPOINTER_TO_UINT(p) ((guint) (guint64) (p)) -#ifdef __LP64__ -#define GINT_TO_POINTER(i) ((gpointer) (glong) (i)) -#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u)) -#else -#define GINT_TO_POINTER(i) ((gpointer) (gint) (i)) -#define GUINT_TO_POINTER(u) ((gpointer) (guint) (u)) -#endif +#define GINT_TO_POINTER(i) ((gpointer) (gint64) (i)) +#define GUINT_TO_POINTER(u) ((gpointer) (guint64) (u)) -#ifdef __LP64__ -typedef signed long gintptr; -typedef unsigned long guintptr; -#else -typedef signed int gintptr; -typedef unsigned int guintptr; -#endif +typedef signed long long gintptr; +typedef unsigned long long guintptr; -#ifdef __LP64__ -#define G_GINTPTR_MODIFIER "l" -#define G_GINTPTR_FORMAT "li" -#define G_GUINTPTR_FORMAT "lu" -#else -#define G_GINTPTR_MODIFIER "" -#define G_GINTPTR_FORMAT "i" -#define G_GUINTPTR_FORMAT "u" -#endif +#define G_GINTPTR_MODIFIER "I64" +#define G_GINTPTR_FORMAT "I64i" +#define G_GUINTPTR_FORMAT "I64u" #ifndef G_DISABLE_DEPRECATED #define g_ATEXIT(proc) (atexit (proc)) #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END