mirror of https://github.com/python/cpython
Only include update_lines_cols() function when it's actually going to be used
This commit is contained in:
parent
060792cdc3
commit
3d8f8c1d62
|
@ -2319,6 +2319,7 @@ PyCurses_QiFlush(PyObject *self, PyObject *args)
|
|||
|
||||
/* Internal helper used for updating curses.LINES, curses.COLS, _curses.LINES
|
||||
* and _curses.COLS */
|
||||
#if defined(HAVE_CURSES_RESIZETERM) || defined(HAVE_CURSES_RESIZE_TERM)
|
||||
static int
|
||||
update_lines_cols(void)
|
||||
{
|
||||
|
@ -2363,6 +2364,7 @@ update_lines_cols(void)
|
|||
Py_DECREF(m);
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CURSES_RESIZETERM
|
||||
static PyObject *
|
||||
|
|
Loading…
Reference in New Issue