pidgin: db1171cc: Fix compiling on older Glib where G_GSSI...

nosnilmot at pidgin.im nosnilmot at pidgin.im
Mon Mar 17 10:30:43 EDT 2008


-----------------------------------------------------------------
Revision: db1171cc2d416f5cd179e505499292b0585e5d68
Ancestor: 2c0072ee994a411d5c2ab00dc1ae8e59a95396b2
Author: nosnilmot at pidgin.im
Date: 2008-03-17T14:17:56
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/db1171cc2d416f5cd179e505499292b0585e5d68

Modified files:
        libpurple/internal.h

ChangeLog: 

Fix compiling on older Glib where G_GSSIZE_FORMAT is not defined

-------------- next part --------------
============================================================
--- libpurple/internal.h	ae1fedf96c79579f0e6ca68933a2144c8363e8ce
+++ libpurple/internal.h	0762159cb0d27d5537e611db67c6d7625d0bf5b0
@@ -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__))


More information about the Commits mailing list