mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 15:56:21 +00:00
Added glib < 2.30 compatibility function
This commit is contained in:
@@ -27,7 +27,11 @@
|
||||
#include <glib.h>
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2,28,0)
|
||||
#define g_slist_free_full(items, free_func) p_slist_free_full(items, free_func)
|
||||
#define g_slist_free_full(items, free_func) p_slist_free_full(items, free_func)
|
||||
#endif
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2,30,0)
|
||||
#define g_utf8_substring(str, start_pos, end_pos) p_utf8_substring(str, start_pos, end_pos)
|
||||
#endif
|
||||
|
||||
#ifndef NOTIFY_CHECK_VERSION
|
||||
@@ -50,6 +54,7 @@
|
||||
resource = NULL; \
|
||||
}
|
||||
|
||||
gchar* p_utf8_substring(const gchar *str, glong start_pos, glong end_pos);
|
||||
void p_slist_free_full(GSList *items, GDestroyNotify free_func);
|
||||
void create_dir(char *name);
|
||||
char * str_replace(const char *string, const char *substr,
|
||||
|
||||
Reference in New Issue
Block a user