aboutsummaryrefslogtreecommitdiffstats
path: root/src/options.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 14:25:00 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 14:25:00 +0200
commit88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a (patch)
treef637ddd9f06c52890ffffe4910d410d4dd36d520 /src/options.h
parent3e70743f5061573a2d9fff2fe4b232f38653d12b (diff)
downloadmpd-88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a.tar.gz
mpd-88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a.tar.xz
mpd-88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a.zip
colors: make color support optional at compile time
Default is colors disabled. Those who love colorful terminals have the option to enable it with --enable-colors.
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options.h b/src/options.h
index 70853f4ff..e7e9e8f4c 100644
--- a/src/options.h
+++ b/src/options.h
@@ -1,6 +1,8 @@
#ifndef OPTIONS_H
#define OPTIONS_H
+#include "config.h"
+
#include <stdbool.h>
#define MPD_HOST_ENV "MPD_HOST"
@@ -31,7 +33,9 @@ typedef struct {
bool list_wrap;
bool auto_center;
bool wide_cursor;
+#ifdef ENABLE_COLORS
bool enable_colors;
+#endif
bool audible_bell;
bool visible_bell;
bool enable_xterm_title;