From d8e23bb0847d766d7f3fdf8bdd11f7d70829fad8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 17 Jul 2015 14:33:34 +0200 Subject: remove UTF-8 code when compiling with --disable-unicode --- ListItem.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ListItem.c') diff --git a/ListItem.c b/ListItem.c index 68fd9ffe..07788e73 100644 --- a/ListItem.c +++ b/ListItem.c @@ -42,7 +42,11 @@ static void ListItem_display(Object* cast, RichString* out) { snprintf(buffer, len, "%s", this->value); */ if (this->moving) { - RichString_write(out, CRT_colors[DEFAULT_COLOR], CRT_utf8 ? "↕ " : "+ "); + RichString_write(out, CRT_colors[DEFAULT_COLOR], +#ifdef HAVE_LIBNCURSESW + CRT_utf8 ? "↕ " : +#endif + "+ "); } else { RichString_prune(out); } -- cgit v1.2.3