diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2008-06-19 14:02:30 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2008-06-19 14:02:30 (GMT) |
commit | 3d8f8c1d6215ced6a6cde741500cd7a8d892a1a6 (patch) | |
tree | d914dc77b7e698d10f6deb9d2b6b5e71fe76e1ba /Modules/_cursesmodule.c | |
parent | 060792cdc3a62aa545282ff97143b8c10724523c (diff) | |
download | cpython-3d8f8c1d6215ced6a6cde741500cd7a8d892a1a6.zip cpython-3d8f8c1d6215ced6a6cde741500cd7a8d892a1a6.tar.gz cpython-3d8f8c1d6215ced6a6cde741500cd7a8d892a1a6.tar.bz2 |
Only include update_lines_cols() function when it's actually going to be used
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r-- | Modules/_cursesmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 137c580..922f351 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 * |