aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmdline.c
diff options
context:
space:
mode:
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