mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
Define g_strcmp0 to strcmp if the glib version is older than 2.16
This commit is contained in:
parent
f14199d9c1
commit
ef0877f484
1 changed files with 4 additions and 0 deletions
|
|
@ -52,6 +52,10 @@
|
||||||
#define g_slice_free(type, mem) g_free(mem)
|
#define g_slice_free(type, mem) g_free(mem)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION(2,16,0)
|
||||||
|
#define g_strcmp0(str1, str2) strcmp(str1, str2)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_GC
|
#ifdef USE_GC
|
||||||
# define g_free(x) G_STMT_START { (x) = NULL; } G_STMT_END
|
# define g_free(x) G_STMT_START { (x) = NULL; } G_STMT_END
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue