Code

colors: make color support optional at compile time
[ncmpc.git] / src / colors.h
index b612a33ce0ba93a8b5a8ee4573a574ab899a5dd9..051aa9e26b76b6e050aabaf270d1f2ba690b534d 100644 (file)
@@ -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 */