# HG changeset patch # User Mark Doliner # Date 1104687485 0 # Node ID 151498407e2328ea3d972a97e9247f6e715f2d6f # Parent 2c8d71687ea5f82bae4fe43ba9c765dd172f8451 [gaim-migrate @ 11744] sf patch #1094369, from Kevin Stange "This change to internal.h fixes the fact that glib seems to provide the wrong printf formatting for gint64/guint64 integers. It's kinda nasty, but it eliminates some warnings compiling the MSN stuff that uses guint64s. This can be applied to both HEAD and oldstatus. I am going to have to look into why glib (or something) sets G_GINT64_MODIFIER to capital 'I' because that isn't a valid formatting character. At least not in gcc 3.3..." committer: Tailor Script diff -r 2c8d71687ea5 -r 151498407e23 src/internal.h --- a/src/internal.h Sun Jan 02 12:07:54 2005 +0000 +++ b/src/internal.h Sun Jan 02 17:38:05 2005 +0000 @@ -126,6 +126,16 @@ #include "win32dep.h" #endif +/* stupid, stupid, stupid */ +/* This is a workaround for the fact that G_GINT64_MODIFIER and + * G_GUINT64_FORMAT are wrong, even in Glib >= 2.4 */ +#ifdef _WIN32 +# undef G_GINT64_MODIFIER +# define G_GINT64_MODIFIER "ll" +# undef G_GUINT64_FORMAT +# define G_GUINT64_FORMAT "llu" +#endif + /* ugly ugly ugly */ /* This is a workaround for the fact that G_GINT64_MODIFIER and G_GSIZE_FORMAT * are only defined in Glib >= 2.4 */