changeset 22499:a8fff9da2791

Fix compiling on older Glib where G_GSSIZE_FORMAT is not defined
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 17 Mar 2008 14:17:56 +0000
parents b6bf5a5f261b
children 2f88870f86bf
files libpurple/internal.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/internal.h	Mon Mar 17 14:15:29 2008 +0000
+++ b/libpurple/internal.h	Mon Mar 17 14:17:56 2008 +0000
@@ -198,6 +198,14 @@
 #	endif
 #endif
 
+#ifndef G_GSSIZE_FORMAT
+#	if GLIB_SIZEOF_LONG == 8
+#		define G_GSSIZE_FORMAT "li"
+#	else
+#		define G_GSSIZE_FORMAT "i"
+#	endif
+#endif
+
 #ifndef G_GNUC_NULL_TERMINATED
 #	if     __GNUC__ >= 4
 #		define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))