]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/ncurses.c
ncurses 5.6 - patch 20070317
[ncurses.git] / test / ncurses.c
index f6090f43823455ddc627400b6b5874dc561bbaf9..7f45f9a316e3ebdd6ccaf58ee738f19651628963 100644 (file)
@@ -40,7 +40,7 @@ AUTHOR
    Author: Eric S. Raymond <esr@snark.thyrsus.com> 1993
            Thomas E. Dickey (beginning revision 1.27 in 1996).
 
-$Id: ncurses.c,v 1.281 2007/01/06 23:32:00 tom Exp $
+$Id: ncurses.c,v 1.283 2007/03/10 19:11:50 tom Exp $
 
 ***************************************************************************/
 
@@ -3379,7 +3379,7 @@ FRAME
     WINDOW *wind;
 };
 
-#ifdef NCURSES_VERSION
+#if defined(NCURSES_VERSION) && !NCURSES_OPAQUE
 #define keypad_active(win) (win)->_use_keypad
 #define scroll_active(win) (win)->_scroll
 #else
@@ -3395,6 +3395,7 @@ static bool
 HaveKeypad(FRAME * curp)
 {
     WINDOW *win = (curp ? curp->wind : stdscr);
+    (void) win;
     return keypad_active(win);
 }
 
@@ -3402,6 +3403,7 @@ static bool
 HaveScroll(FRAME * curp)
 {
     WINDOW *win = (curp ? curp->wind : stdscr);
+    (void) win;
     return scroll_active(win);
 }