@@ -906,6 +906,7 @@ PyCursesWindow_GetKey(PyCursesWindowObject *self, PyObject *args)
906906 }
907907}
908908
909+ #ifdef HAVE_NCURSESW
909910static PyObject *
910911PyCursesWindow_Get_WCh (PyCursesWindowObject * self , PyObject * args )
911912{
@@ -937,6 +938,7 @@ PyCursesWindow_Get_WCh(PyCursesWindowObject *self, PyObject *args)
937938 }
938939 return PyLong_FromLong (rtn );
939940}
941+ #endif
940942
941943static PyObject *
942944PyCursesWindow_GetStr (PyCursesWindowObject * self , PyObject * args )
@@ -1636,7 +1638,9 @@ static PyMethodDef PyCursesWindow_Methods[] = {
16361638 {"getbkgd" , (PyCFunction )PyCursesWindow_GetBkgd , METH_NOARGS },
16371639 {"getch" , (PyCFunction )PyCursesWindow_GetCh , METH_VARARGS },
16381640 {"getkey" , (PyCFunction )PyCursesWindow_GetKey , METH_VARARGS },
1641+ #ifdef HAVE_NCURSESW
16391642 {"get_wch" , (PyCFunction )PyCursesWindow_Get_WCh , METH_VARARGS },
1643+ #endif
16401644 {"getmaxyx" , (PyCFunction )PyCursesWindow_getmaxyx , METH_NOARGS },
16411645 {"getparyx" , (PyCFunction )PyCursesWindow_getparyx , METH_NOARGS },
16421646 {"getstr" , (PyCFunction )PyCursesWindow_GetStr , METH_VARARGS },
0 commit comments