summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-04-07 23:01:09 -0300
committerdequis <dx@dxzone.com.ar>2015-04-07 23:01:09 -0300
commitef0877f4849a73ba43e886a9faafb321d3559e43 (patch)
tree003a549fcc1643ed5b0927fca5fdfbaf50fb7321 /src/common.h
parentf14199d9c15a8062b5663fa6fcdae00390473b15 (diff)
downloadirssi-ef0877f4849a73ba43e886a9faafb321d3559e43.zip
Define g_strcmp0 to strcmp if the glib version is older than 2.16
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 bb246962..23d091a1 100644
--- a/src/common.h
+++ b/src/common.h
@@ -52,6 +52,10 @@
#define g_slice_free(type, mem) g_free(mem)
#endif
+#if !GLIB_CHECK_VERSION(2,16,0)
+#define g_strcmp0(str1, str2) strcmp(str1, str2)
+#endif
+
#ifdef USE_GC
# define g_free(x) G_STMT_START { (x) = NULL; } G_STMT_END
#endif