mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 10:26:22 +00:00
Added glib g_hash_table_add for glib < 2.32
This commit is contained in:
@@ -36,6 +36,10 @@
|
||||
#define g_utf8_substring(str, start_pos, end_pos) p_utf8_substring(str, start_pos, end_pos)
|
||||
#endif
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2,32,0)
|
||||
#define g_hash_table_add(hash_table, key) p_hash_table_add(hash_table, key)
|
||||
#endif
|
||||
|
||||
#ifndef NOTIFY_CHECK_VERSION
|
||||
#define notify_notification_new(summary, body, icon) notify_notification_new(summary, body, icon, NULL)
|
||||
#endif
|
||||
@@ -74,6 +78,8 @@ typedef enum {
|
||||
gchar* p_utf8_substring(const gchar *str, glong start_pos, glong end_pos);
|
||||
void p_slist_free_full(GSList *items, GDestroyNotify free_func);
|
||||
void p_list_free_full(GList *items, GDestroyNotify free_func);
|
||||
gboolean p_hash_table_add(GHashTable *hash_table, gpointer key);
|
||||
|
||||
gboolean create_dir(char *name);
|
||||
gboolean mkdir_recursive(const char *dir);
|
||||
char * str_replace(const char *string, const char *substr,
|
||||
|
||||
Reference in New Issue
Block a user