Skip to content

Commit 84c8843

Browse files
[3.12] gh-123925: Fix building curses on platforms without libncursesw (GH-128405) (GH-128408)
(cherry picked from commit 8d16919) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 487caa9 commit 84c8843

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ typedef chtype attr_t; /* No attr_t type is available */
139139
#define STRICT_SYSV_CURSES
140140
#endif
141141

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

0 commit comments

Comments
 (0)