Code

colors: make color support optional at compile time
[ncmpc.git] / src / ncu.c
index ed3c2273b021b7f76a7b9b9e610b87c24ba3ff66..936e78aa5b52e351be499add2a9015c9fb16afc5 100644 (file)
--- a/src/ncu.c
+++ b/src/ncu.c
  */
 
 #include "ncu.h"
+
+#ifdef ENABLE_COLORS
 #include "colors.h"
+#endif
+
+#ifdef HAVE_GETMOUSE
+#include "options.h"
+#endif
+
+#include <ncurses.h>
 
 void
 ncu_init(void)
@@ -26,7 +35,9 @@ ncu_init(void)
        initscr();
 
        /* initialize color support */
+#ifdef ENABLE_COLORS
        colors_start();
+#endif
 
        /* tell curses not to do NL->CR/NL on output */
        nonl();