aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_curl.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-01 00:37:22 +0100
committerMax Kellermann <max@duempel.org>2009-03-01 00:37:22 +0100
commitae87abae593e7baf07b547d8348c31213838e437 (patch)
tree9122b1fd0007a0b9f2d774865c39988cfddf2304 /src/input_curl.c
parent82b081a6db88714aa2501e875e2e0f129f047d08 (diff)
downloadmpd-ae87abae593e7baf07b547d8348c31213838e437.tar.gz
mpd-ae87abae593e7baf07b547d8348c31213838e437.tar.xz
mpd-ae87abae593e7baf07b547d8348c31213838e437.zip
use GLIB_CHECK_VERSION()
Use GLIB_CHECK_VERSION() instead of manually checking GLIB_MAJOR_VERSION, ...
Diffstat (limited to '')
-rw-r--r--src/input_curl.c2
1 files changed, 1 insertions, 1 deletions
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