From e2f82e924d057935dd4c61c0c53e11b15762eda2 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 27 Sep 2017 12:38:11 +0200 Subject: console: purge curses bits from console.h Handle the translation from vga chars to curses chars in curses_update() instead of console_write_ch(). Purge any curses support bits from ui/console.h include file. Signed-off-by: Gerd Hoffmann Message-id: 20170927103811.19249-1-kraxel@redhat.com --- target/unicore32/helper.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'target') diff --git a/target/unicore32/helper.c b/target/unicore32/helper.c index 309dcd1ae1..3393d2c020 100644 --- a/target/unicore32/helper.c +++ b/target/unicore32/helper.c @@ -163,6 +163,12 @@ uint32_t helper_cp0_get(CPUUniCore32State *env, uint32_t creg, uint32_t cop) } #ifdef CONFIG_CURSES + +/* KEY_EVENT is defined in wincon.h and in curses.h. Avoid redefinition. */ +#undef KEY_EVENT +#include +#undef KEY_EVENT + /* * FIXME: * 1. curses windows will be blank when switching back -- cgit v1.2.3