Code

workaround for libncurses macro warnings
[ncmpc.git] / src / colors.c
index 361a7e93d16f000be78b2aa53222a67c4046814a..9f5409b2610f5dca203275efb809997b9c1f36b2 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "colors.h"
 #include "i18n.h"
+#include "ncfix.h"
+
 #ifdef ENABLE_COLORS
 #include "options.h"
 #endif
@@ -267,7 +269,7 @@ colors_use(WINDOW *w, enum color id)
 
        assert(id > 0 && id < COLOR_END);
 
-       wattr_get(w, &attrs, &pair, NULL);
+       fix_wattr_get(w, &attrs, &pair, NULL);
 
 #ifdef ENABLE_COLORS
        if (options.enable_colors) {