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/mapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mapper.c') diff --git a/src/mapper.c b/src/mapper.c index b167479dd..66bdeebaa 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -96,7 +96,7 @@ void mapper_init(void) path = config_get_path(CONF_MUSIC_DIR); if (path != NULL) mapper_set_music_dir(path); -#if GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 14) +#if GLIB_CHECK_VERSION(2,14,0) else { path = g_get_user_special_dir(G_USER_DIRECTORY_MUSIC); if (path != NULL) -- cgit v1.2.3