Skip to content

Commit 8d16919

Browse files
gh-123925: Fix building curses on platforms without libncursesw (GH-128405)
1 parent e1baa77 commit 8d16919

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix building the :mod:`curses` module on platforms with libncurses but
2+
without libncursesw.

Modules/_cursesmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ typedef chtype attr_t; /* No attr_t type is available */
138138
#define STRICT_SYSV_CURSES
139139
#endif
140140

141-
#if NCURSES_EXT_FUNCS+0 >= 20170401 && NCURSES_EXT_COLORS+0 >= 20170401
141+
#if defined(HAVE_NCURSESW) && NCURSES_EXT_FUNCS+0 >= 20170401 && NCURSES_EXT_COLORS+0 >= 20170401
142142
#define _NCURSES_EXTENDED_COLOR_FUNCS 1
143143
#else
144144
#define _NCURSES_EXTENDED_COLOR_FUNCS 0

0 commit comments

Comments
 (0)