Code

colors: make color support optional at compile time
[ncmpc.git] / src / options.h
index 70853f4ff1f3180edc028710e02b9bff8d18f6e3..e7e9e8f4c358b03598d32a009d2500f24b6b41cb 100644 (file)
@@ -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;