[tin-dev] ncurses 6.0 and #define HAVE_NCURSESW

Dennis Preiser dennis at d--p.de
Sun Aug 9 14:18:02 CEST 2015


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
-------------- next part --------------
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>


More information about the tin-dev mailing list