g_ptr_array_free (array, TRUE);
}
#endif
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 14))
+void
+g_queue_clear (GQueue *queue)
+{
+ g_return_if_fail (queue != NULL);
+
+ g_list_free (queue->head);
+ queue->head = queue->tail = NULL;
+ queue->length = 0;
+}
+#endif
gsize
rspamd_strlcpy (gchar *dst, const gchar *src, gsize siz)
void gperf_profiler_init (struct config_file *cfg, const gchar *descr);
/*
- * Workaround for older versions of glib
+ * Workarounds for older versions of glib
*/
#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 22))
void g_ptr_array_unref (GPtrArray *array);
#endif
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 14))
+void g_queue_clear (GQueue *queue);
+#endif
/*