From ef0877f4849a73ba43e886a9faafb321d3559e43 Mon Sep 17 00:00:00 2001 From: dequis Date: Tue, 7 Apr 2015 23:01:09 -0300 Subject: [PATCH] Define g_strcmp0 to strcmp if the glib version is older than 2.16 --- src/common.h | 4 ++++ 1 file changed, 4 insertions(+) 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