Ticket #17042: patch-glibconfig.h.diff

File patch-glibconfig.h.diff, 1.0 KB (added by jmroot (Joshua Root), 16 years ago)
  • glibconfig.h

    old new  
    4949#define G_GUINT32_FORMAT "u"
    5050#define G_HAVE_GINT64 1          /* deprecated, always true */
    5151
     52#ifdef __LP64__
    5253typedef signed long gint64;
    5354typedef unsigned long guint64;
     55#else
     56typedef signed long long gint64;
     57typedef unsigned long long guint64;
     58#endif
    5459
     60#ifdef __LP64__
    5561#define G_GINT64_CONSTANT(val)  (val##L)
    5662#define G_GUINT64_CONSTANT(val) (val##UL)
    5763#define G_GINT64_MODIFIER "l"
    5864#define G_GINT64_FORMAT "li"
    5965#define G_GUINT64_FORMAT "lu"
     66#else
     67#define G_GINT64_CONSTANT(val)  (val##LL)
     68#define G_GUINT64_CONSTANT(val) (val##ULL)
     69#define G_GINT64_MODIFIER "ll"
     70#define G_GINT64_FORMAT "lli"
     71#define G_GUINT64_FORMAT "llu"
     72#endif
    6073
     74#ifdef __LP64__
    6175#define GLIB_SIZEOF_VOID_P 8
    6276#define GLIB_SIZEOF_LONG   8
    6377#define GLIB_SIZEOF_SIZE_T 8
     78#else
     79#define GLIB_SIZEOF_VOID_P 4
     80#define GLIB_SIZEOF_LONG   4
     81#define GLIB_SIZEOF_SIZE_T 4
     82#endif
    6483
    6584typedef signed long gssize;
    6685typedef unsigned long gsize;