diff options
author | Max Kellermann <max@duempel.org> | 2009-03-01 00:37:22 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-01 00:37:22 +0100 |
commit | ae87abae593e7baf07b547d8348c31213838e437 (patch) | |
tree | 9122b1fd0007a0b9f2d774865c39988cfddf2304 /src/cmdline.c | |
parent | 82b081a6db88714aa2501e875e2e0f129f047d08 (diff) | |
download | mpd-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.c | 4 |
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 |