Only include update_lines_cols() function when it's actually going to be used

This commit is contained in:
Andrew M. Kuchling 2008-06-19 14:02:30 +00:00
parent 060792cdc3
commit 3d8f8c1d62
1 changed files with 2 additions and 0 deletions

View File

@ -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 *