]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-145376: Fix _cursesmodule.c build on FreeBSD/macOS (#145669)
authorVictor Stinner <vstinner@python.org>
Mon, 9 Mar 2026 13:53:52 +0000 (14:53 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2026 13:53:52 +0000 (14:53 +0100)
Modules/_cursesmodule.c

index dd96f9aa62b85b76674926cd14ba8de9c95e15ac..fe9d6fe2763f36086a8228aa6bea8354d70fc162 100644 (file)
@@ -1132,7 +1132,9 @@ _curses_window_addstr_impl(PyCursesWindowObject *self, int group_left_1,
     else
 #endif
     {
+#ifdef HAVE_NCURSESW
         assert(wstr == NULL);
+#endif
         const char *str = PyBytes_AS_STRING(bytesobj);
         if (use_xy) {
             rtn = mvwaddstr(self->win,y,x,str);