aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmdline.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/cmdline.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/cmdline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmdline.c b/src/cmdline.c
index 3941a143b..b0cdbfb2f 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -66,7 +66,7 @@ static void version(void)
exit(EXIT_SUCCESS);
}
-#if GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 12)
+#if GLIB_CHECK_VERSION(2,12,0)
static const char *summary =
"Music Player Daemon - a daemon for playing music.";
#endif
@@ -108,7 +108,7 @@ void parseOptions(int argc, char **argv, Options *options)
context = g_option_context_new("[path/to/mpd.conf]");
g_option_context_add_main_entries(context, entries, NULL);
-#if GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 12)
+#if GLIB_CHECK_VERSION(2,12,0)
g_option_context_set_summary(context, summary);
#endif