From ae87abae593e7baf07b547d8348c31213838e437 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Mar 2009 00:37:22 +0100 Subject: use GLIB_CHECK_VERSION() Use GLIB_CHECK_VERSION() instead of manually checking GLIB_MAJOR_VERSION, ... --- src/input_curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_curl.c') diff --git a/src/input_curl.c b/src/input_curl.c index f99cba7d1..47fc594e8 100644 --- a/src/input_curl.c +++ b/src/input_curl.c @@ -119,7 +119,7 @@ buffer_free_callback(gpointer data, G_GNUC_UNUSED gpointer user_data) } /* g_queue_clear() was introduced in GLib 2.14 */ -#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 14 +#if GLIB_CHECK_VERSION(2,14,0) #define g_queue_clear(q) do { g_queue_free(q); q = g_queue_new(); } while (0) #endif -- cgit v1.2.3