fix compilation for glib >= 2.60

closes #760

Change-Id: I7fa9ee50663cdb91fe09147507734fbd88afce8c
changes/68/29568/1
Richard Fuchs 7 years ago
parent 285773fa3b
commit a4cca5f27f

@ -95,11 +95,13 @@ INLINE void g_queue_truncate(GQueue *q, unsigned int len) {
while (q->length > len)
g_queue_pop_tail(q);
}
#if !(GLIB_CHECK_VERSION(2,60,0))
INLINE void g_queue_clear_full(GQueue *q, GDestroyNotify free_func) {
void *p;
while ((p = g_queue_pop_head(q)))
free_func(p);
}
#endif
INLINE void g_queue_append(GQueue *dst, const GQueue *src) {
GList *l;
if (!src || !dst)

Loading…
Cancel
Save