changeset 10114:70a82a701aad

[gaim-migrate @ 11148] People with Glib < 2.4 need these uglies on HEAD now that Nathan's put his 64bit fixes in. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 18 Oct 2004 12:52:55 +0000
parents 84985e2b85cc
children 4fd312ceaa29
files src/internal.h
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/internal.h	Mon Oct 18 12:51:29 2004 +0000
+++ b/src/internal.h	Mon Oct 18 12:52:55 2004 +0000
@@ -126,6 +126,24 @@
 #include "win32dep.h"
 #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 */
+#ifndef G_GINT64_MODIFIER
+#	if GLIB_SIZEOF_LONG == 8
+#		define G_GINT64_MODIFIER "l"
+#	else
+#		define G_GINT64_MODIFIER "ll"
+#	endif
+#endif
+
+#ifndef G_GSIZE_FORMAT
+#	if GLIB_SIZEOF_LONG == 8
+#		define G_GSIZE_FORMAT "lu"
+#	else
+#		define G_GSIZE_FORMAT "u"
+#	endif
+#endif
 
 #define GAIM_WEBSITE "http://gaim.sourceforge.net/"