diff --git a/include/aux.h b/include/aux.h index c311941d5..25e19ee15 100644 --- a/include/aux.h +++ b/include/aux.h @@ -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)