changeset 10466:151498407e23

[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 <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 02 Jan 2005 17:38:05 +0000
parents 2c8d71687ea5
children cbbf5af9e520
files src/internal.h
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 */