ncurses 6.0 and #define HAVE_NCURSESW
Dennis Preiser <[email protected]> Sun, 9 Aug 2015 14:18:02 +0200
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Message-ID | <[email protected]> |
--a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, since June this year ncurses 6.0 is available. The new major number is 6 and the new minor number is 0. In include/tcurses.h we check >= 5 && >= 3 to define HAVE_NCURSESW, so HAVE_NCURSESW remains undefined with 6 and 0. The patch below fixes this. Dennis --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="2015-08-09_tcurses.h.diff" diff -urp tin-2.3.1_r4/include/tcurses.h tin-2.3.1_r5/include/tcurses.h --- tin-2.3.1_r4/include/tcurses.h 2014-12-24 09:42:42.000000000 +0100 +++ tin-2.3.1_r5/include/tcurses.h 2015-08-09 14:15:49.000000000 +0200 @@ -50,9 +50,9 @@ # endif /* _XOPEN_SOURCE_EXTENDED */ # include <ncursesw/ncurses.h> /* we need a recent ncursesw for wide-char */ -# if (NCURSES_VERSION_MAJOR >= 5) && (NCURSES_VERSION_MINOR >= 3) +# if (NCURSES_VERSION_MAJOR == 5) && (NCURSES_VERSION_MINOR >= 3) || (NCURSES_VERSION_MAJOR >= 6) # define HAVE_NCURSESW 1 -# endif /* NCURSES_VERSION_MAJOR >= 5 && NCURSES_VERSION_MINOR >=3 */ +# endif /* NCURSES_VERSION_MAJOR == 5 && NCURSES_VERSION_MINOR >=3 || NCURSES_VERSION_MAJOR >= 6 */ # else # if defined(HAVE_NCURSES_H) # include <ncurses.h> --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KdGluLWRldiBt YWlsaW5nIGxpc3QKdGluLWRldkB0aW4ub3JnCmh0dHA6Ly9saXN0cy50aW4ub3JnL2NnaS1iaW4v bWFpbG1hbi9saXN0aW5mby90aW4tZGV2Cg== --a8Wt8u1KmwUX3Y2C--