compilation fix for glib < 2.32 (CentOS 6)

closes #485

Change-Id: I4d6be802503ba9334fe0687ec869335ada0fcc3f
changes/18/19618/2
Richard Fuchs 8 years ago
parent 6e8d57e528
commit e4e79233e2

@ -90,6 +90,12 @@ GList *g_list_link(GList *, GList *);
INLINE int g_hash_table_contains(GHashTable *h, const void *k) {
return g_hash_table_lookup(h, k) ? 1 : 0;
}
INLINE void g_queue_free_full(GQueue *q, GDestroyNotify free_func) {
void *d;
while ((d = g_queue_pop_head(q)))
free_func(d);
g_queue_free(q);
}
#endif

Loading…
Cancel
Save