]> granicus.if.org Git - python/commitdiff
Only include update_lines_cols() function when it's actually going to be used
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 19 Jun 2008 14:02:30 +0000 (14:02 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 19 Jun 2008 14:02:30 +0000 (14:02 +0000)
Modules/_cursesmodule.c

index 137c580731dae9bcc0207f112f160d61979041af..922f351e429d5865914ae8e3f024f7a14ce40b2a 100644 (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 *