gobjectification: d3499ff8: Fix compile with glib version < 2.18.

sadrul at pidgin.im sadrul at pidgin.im
Mon Jun 21 11:11:34 EDT 2010


-----------------------------------------------------------------
Revision: d3499ff8edddca23b0820f633fac8a989313525a
Ancestor: 18a99954b390eb638a4cd8a365cb5a403f185d6d
Author: sadrul at pidgin.im
Date: 2010-06-21T15:11:11
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/d3499ff8edddca23b0820f633fac8a989313525a

Modified files:
        libpurple/ghash.c

ChangeLog: 

Fix compile with glib version < 2.18.

-------------- next part --------------
============================================================
--- libpurple/ghash.c	2230f25d20eeb78c25316d3857a9c62a6bcc45ad
+++ libpurple/ghash.c	0229a7cecc9f2cd1e844157aa8f44be94f4c411a
@@ -152,7 +152,9 @@ purple_g_hash_finalize(GObject *obj) {
 purple_g_hash_finalize(GObject *obj) {
 	PurpleGHashPrivate *priv = PURPLE_G_HASH_GET_PRIVATE(obj);
 
+#if GLIB_CHECK_VERSION(2,18,0)
 	g_checksum_reset(priv->checksum);
+#endif
 	g_checksum_free(priv->checksum);
 	priv->checksum = NULL;
 


More information about the Commits mailing list