mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +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)
|
||||
#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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue