On Mon, Feb 11, 2008 at 01:58:57PM +0100, Clemens Helfmeier wrote:
> checking if we must include wchar.h to declare wint_t... yes
> If this is "yes" your system is like mine, if there is "no", you could test 
> the 
> attached patch (if the patch breaks ncurses when the option mentioned above 
> is 
> either enabled or disabled, we should think about a better solution).

On my system the answer is "no"

> Index: package/ncurses/patches/patch-ncurses_curses_priv_h
> ===================================================================
> --- package/ncurses/patches/patch-ncurses_curses_priv_h (Revision 0)
> +++ package/ncurses/patches/patch-ncurses_curses_priv_h (Revision 0)
> @@ -0,0 +1,14 @@
> +$FreeWRT$
> +--- ncurses-5.6.orig/ncurses/curses.priv.h     2006-12-10 01:55:14.000000000 
> +0100
> ++++ ncurses-5.6/ncurses/curses.priv.h  2008-02-11 13:12:04.000000000 +0100
> +@@ -253,6 +253,10 @@ color_t;
> + #include <term_entry.h>
> + #include <nc_tparm.h>
> +
> ++#ifndef _WINT_T
> ++#include <wchar.h>
> ++#endif
> ++
> + #if NCURSES_EXT_COLORS && USE_WIDEC_SUPPORT
> + #define if_EXT_COLORS(stmt)   stmt
> + #define NetPair(value,p)      (value).ext_color = (p), \

This patch works for me, regardless of UTF-8 being enabled or disabled.
Please commit it.

Greetings, Phil
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to