diff --git a/lib/auxlib.h b/lib/auxlib.h index 3694871a2..7f46b1dd0 100644 --- a/lib/auxlib.h +++ b/lib/auxlib.h @@ -440,13 +440,6 @@ INLINE gboolean g_hash_table_steal_extended(GHashTable *ht, gconstpointer lookup } #endif -#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 /*** MISC ***/ diff --git a/lib/containers.h b/lib/containers.h index cbe7f761e..6025af3ee 100644 --- a/lib/containers.h +++ b/lib/containers.h @@ -5,6 +5,13 @@ #include #include +#if !(GLIB_CHECK_VERSION(2,60,0)) +static inline void g_queue_clear_full(GQueue *q, GDestroyNotify free_func) { + void *p; + while ((p = g_queue_pop_head(q))) + free_func(p); +} +#endif #define TYPED_GHASHTABLE_PROTO(type_name, key_type, value_type) \ typedef union { \