From a4cca5f27fee7234b1e183fd25c66f64e544e0e5 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 26 Apr 2019 16:44:26 -0400 Subject: [PATCH] fix compilation for glib >= 2.60 closes #760 Change-Id: I7fa9ee50663cdb91fe09147507734fbd88afce8c --- include/aux.h | 2 ++ 1 file changed, 2 insertions(+) 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)