aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.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/conf.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/conf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c
index 1630f6231..5b3ebb3f7 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -499,7 +499,11 @@ read_rc_file(char *filename)
else if (!strcasecmp(CONF_XTERM_TITLE, name))
options.enable_xterm_title = str2bool(value);
else if (!strcasecmp(CONF_ENABLE_MOUSE, name))
+#ifdef HAVE_GETMOUSE
options.enable_mouse = str2bool(value);
+#else
+ {}
+#endif
else if (!strcasecmp(CONF_CROSSFADE_TIME, name))
options.crossfade_time = atoi(value);
else if (!strcasecmp(CONF_SEARCH_MODE, name))
@@ -520,7 +524,11 @@ read_rc_file(char *filename)
else if (!strcasecmp(CONF_PASSWORD, name))
options.password = get_format(value);
else if (!strcasecmp(CONF_LYRICS_TIMEOUT, name))
+#ifdef ENABLE_LYRICS_SCREEN
options.lyrics_timeout = atoi(get_format(value));
+#else
+ {}
+#endif
else if (!strcasecmp(CONF_SCROLL, name))
options.scroll = str2bool(value);
else if (!strcasecmp(CONF_SCROLL_SEP, name)) {