Fix compiling on older Glib where G_GSIZE_MODIFIER is not defined

Mon, 17 Mar 2008 14:13:47 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Mon, 17 Mar 2008 14:13:47 +0000
changeset 22633
fef446de68fe
parent 22632
ef72cdb82d07
child 22634
faaadc2d74bb

Fix compiling on older Glib where G_GSIZE_MODIFIER is not defined

libpurple/internal.h file | annotate | diff | comparison | revisions
--- a/libpurple/internal.h	Mon Mar 17 14:08:36 2008 +0000
+++ b/libpurple/internal.h	Mon Mar 17 14:13:47 2008 +0000
@@ -182,6 +182,14 @@
 #	endif
 #endif
 
+#ifndef G_GSIZE_MODIFIER
+#	if GLIB_SIZEOF_LONG == 8
+#		define G_GSIZE_MODIFIER "l"
+#	else
+#		define G_GSIZE_MODIFIER ""
+#	endif
+#endif
+
 #ifndef G_GSIZE_FORMAT
 #	if GLIB_SIZEOF_LONG == 8
 #		define G_GSIZE_FORMAT "lu"

mercurial