input_curl: added fallback for g_queue_clear()
g_queue_clear() was introduced in GLib 2.14. Add a macro hack for older GLib versions to emulate it.
This commit is contained in:
parent
29baf0c190
commit
08e18f7070
@ -115,6 +115,11 @@ buffer_free_callback(gpointer data, G_GNUC_UNUSED gpointer user_data)
|
|||||||
g_free(data);
|
g_free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* g_queue_clear() was introduced in GLib 2.14 */
|
||||||
|
#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 14
|
||||||
|
#define g_queue_clear(q) do { g_queue_free(q); q = g_queue_new(); } while (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Frees the current "libcurl easy" handle, and everything associated
|
* Frees the current "libcurl easy" handle, and everything associated
|
||||||
* with it.
|
* with it.
|
||||||
|
Loading…
Reference in New Issue
Block a user