Skip to content

Commit 39aa415

Browse files
authored
gh-145376: Fix _cursesmodule.c build on FreeBSD/macOS (#145669)
1 parent 4485545 commit 39aa415

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_cursesmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,9 @@ _curses_window_addstr_impl(PyCursesWindowObject *self, int group_left_1,
11321132
else
11331133
#endif
11341134
{
1135+
#ifdef HAVE_NCURSESW
11351136
assert(wstr == NULL);
1137+
#endif
11361138
const char *str = PyBytes_AS_STRING(bytesobj);
11371139
if (use_xy) {
11381140
rtn = mvwaddstr(self->win,y,x,str);

0 commit comments

Comments
 (0)