summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
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)