[gaim-migrate @ 11744]

Sun, 02 Jan 2005 17:38:05 +0000

author
Kevin Stange <kstange@pidgin.im>
date
Sun, 02 Jan 2005 17:38:05 +0000
changeset 10466
f4c0ecfaf9b2
parent 10465
63c103a649be
child 10467
d16dad13f728

[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: Mark Doliner <markdoliner@pidgin.im>

src/internal.h file | annotate | diff | comparison | revisions
--- 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 */

mercurial