X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fmovewindow.c;fp=test%2Fmovewindow.c;h=285d92ef73a9ac04de2d690d260ab054ea63a72e;hp=760ac2f438494ee178303507cdade78d765624bc;hb=5d8dbcdd9423bf9821db414fd9ec792ccf1f1027;hpb=a4dac84af1b18fb24d56d6251deeb3c61c437158 diff --git a/test/movewindow.c b/test/movewindow.c index 760ac2f4..285d92ef 100644 --- a/test/movewindow.c +++ b/test/movewindow.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: movewindow.c,v 1.43 2017/06/24 20:48:46 tom Exp $ + * $Id: movewindow.c,v 1.45 2017/09/06 20:08:11 tom Exp $ * * Demonstrate move functions for windows and derived windows from the curses * library. @@ -45,7 +45,9 @@ TODO: */ #include -#include + +#if HAVE_MVDERWIN && HAVE_MVWIN + #include #ifdef HAVE_XCURSES @@ -767,3 +769,11 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) #endif ExitProgram(EXIT_SUCCESS); } +#else +int +main(void) +{ + printf("This program requires the curses mvderwin and mvwin functions\n"); + ExitProgram(EXIT_FAILURE); +} +#endif