Skip to content

Commit 793f749

Browse files
committed
'testcurs' shouldn't check a PDC function if the code isn't built for PDCurses* (i.e., on ncurses). Fixes an undefined function compiler error.
1 parent eacf886 commit 793f749

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

demos/testcurs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ void inputTest(WINDOW *win)
703703
wprintw( win, " ? getmouse failed ?");
704704
}
705705
#endif
706+
#ifdef PDCURSES
706707
if( c != KEY_MOUSE && PDC_get_key_modifiers())
707708
{
708709
waddstr(win, " Modifier(s):");
@@ -718,6 +719,7 @@ void inputTest(WINDOW *win)
718719
if (PDC_get_key_modifiers() & PDC_KEY_MODIFIER_NUMLOCK)
719720
waddstr(win, " NUMLOCK");
720721
}
722+
#endif
721723
wrefresh(win);
722724
line++;
723725

0 commit comments

Comments
 (0)