summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-12-10 17:31:26 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-12-10 17:31:26 +0000
commitbb55d3ff4d0b9f889f3c9834c10ad014f2edf9a1 (patch)
tree0f540dcfbdbdef587e182f8f597b83557f5ab525 /src/common.h
parent0743ce0e39c1bd43ca2b473593452d21514b38a1 (diff)
downloadirssi-bb55d3ff4d0b9f889f3c9834c10ad014f2edf9a1.zip
A few fixes to make irssi work with garbage collected GLIB.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3055 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 66af15cf..085125a5 100644
--- a/src/common.h
+++ b/src/common.h
@@ -52,6 +52,10 @@
# include <gmodule.h>
#endif
+#ifdef USE_GC
+# define g_free(x) G_STMT_START { (x) = NULL; } G_STMT_END
+#endif
+
#if defined (UOFF_T_INT)
typedef unsigned int uoff_t;
#elif defined (UOFF_T_LONG)