curl: reverse GLIB_CHECK_VERSION()

The GLIB_CHECK_VERSION() macro was used improperly, which broke build
on GLib < 2.14.  Add a "!" for negation.
This commit is contained in:
Max Kellermann 2009-03-06 15:42:33 +01:00
parent 4c3ce9ef1c
commit 5e0acec118
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ buffer_free_callback(gpointer data, G_GNUC_UNUSED gpointer user_data)
} }
/* g_queue_clear() was introduced in GLib 2.14 */ /* g_queue_clear() was introduced in GLib 2.14 */
#if GLIB_CHECK_VERSION(2,14,0) #if !GLIB_CHECK_VERSION(2,14,0)
#define g_queue_clear(q) do { g_queue_free(q); q = g_queue_new(); } while (0) #define g_queue_clear(q) do { g_queue_free(q); q = g_queue_new(); } while (0)
#endif #endif