mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Only include update_lines_cols() function when it's actually going to be used
This commit is contained in:
parent
060792cdc3
commit
3d8f8c1d62
1 changed files with 2 additions and 0 deletions
|
|
@ -2319,6 +2319,7 @@ PyCurses_QiFlush(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
/* Internal helper used for updating curses.LINES, curses.COLS, _curses.LINES
|
/* Internal helper used for updating curses.LINES, curses.COLS, _curses.LINES
|
||||||
* and _curses.COLS */
|
* and _curses.COLS */
|
||||||
|
#if defined(HAVE_CURSES_RESIZETERM) || defined(HAVE_CURSES_RESIZE_TERM)
|
||||||
static int
|
static int
|
||||||
update_lines_cols(void)
|
update_lines_cols(void)
|
||||||
{
|
{
|
||||||
|
|
@ -2363,6 +2364,7 @@ update_lines_cols(void)
|
||||||
Py_DECREF(m);
|
Py_DECREF(m);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CURSES_RESIZETERM
|
#ifdef HAVE_CURSES_RESIZETERM
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue