aboutsummaryrefslogtreecommitdiffstats
path: root/src/colors.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/colors.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/colors.h')
-rw-r--r--src/colors.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/colors.h b/src/colors.h
index b612a33ce..051aa9e26 100644
--- a/src/colors.h
+++ b/src/colors.h
@@ -1,6 +1,8 @@
#ifndef COLORS_H
#define COLORS_H
+#include "config.h"
+
#include <ncurses.h>
enum color {
@@ -20,9 +22,12 @@ enum color {
short colors_str2color(const char *str);
+#ifdef ENABLE_COLORS
int colors_assign(const char *name, const char *value);
int colors_define(const char *name, short r, short g, short b);
int colors_start(void);
+#endif
+
int colors_use(WINDOW *w, enum color id);
#endif /* COLORS_H */