From: Andrew M. Kuchling Date: Thu, 19 Jun 2008 14:02:30 +0000 (+0000) Subject: Only include update_lines_cols() function when it's actually going to be used X-Git-Tag: v2.6b2~229 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d8f8c1d6215ced6a6cde741500cd7a8d892a1a6;p=thirdparty%2FPython%2Fcpython.git Only include update_lines_cols() function when it's actually going to be used --- diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 137c580731da..922f351e429d 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -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 *