aboutsummaryrefslogtreecommitdiffstats
path: root/src/options.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-07 08:30:18 +0100
committerMax Kellermann <max@duempel.org>2008-11-07 08:30:18 +0100
commit25a07c795fdf275b85ccc3b6634f645a0eb1127e (patch)
treef1bc53d8ddf4255e0733258d4f54a2778d8948f4 /src/options.c
parentc7a5ac5c3656074b78d826479959cb7425efadcd (diff)
downloadmpd-25a07c795fdf275b85ccc3b6634f645a0eb1127e.tar.gz
mpd-25a07c795fdf275b85ccc3b6634f645a0eb1127e.tar.xz
mpd-25a07c795fdf275b85ccc3b6634f645a0eb1127e.zip
options: don't store disabled options
Options which are disabled at compile time shouldn't reserve space for their values in the options struct.
Diffstat (limited to '')
-rw-r--r--src/options.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 853f10545..3c39bdaf6 100644
--- a/src/options.c
+++ b/src/options.c
@@ -49,7 +49,9 @@ options_t options = {
.port = DEFAULT_PORT,
.crossfade_time = DEFAULT_CROSSFADE_TIME,
.seek_time = 1,
+#ifdef ENABLE_LYRICS_SCREEN
.lyrics_timeout = DEFAULT_LYRICS_TIMEOUT,
+#endif
.find_wrap = true,
.wide_cursor = true,
.audible_bell = true,
@@ -190,10 +192,14 @@ handle_option(int c, const char *arg)
#endif
break;
case 'm': /* --mouse */
+#ifdef HAVE_GETMOUSE
options.enable_mouse = true;
+#endif
break;
case 'M': /* --no-mouse */
+#ifdef HAVE_GETMOUSE
options.enable_mouse = false;
+#endif
break;
case 'e': /* --exit */
/* deprecated */