X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fmovewindow.c;h=b8e9e049602dcf0298a27ae3c60a418a6e20e44d;hp=760ac2f438494ee178303507cdade78d765624bc;hb=2017ab0e60ca857accae38a01252e0cbdf5f1efe;hpb=3e7e5f8b5c4e8e499f682a1c414c576c16d47532 diff --git a/test/movewindow.c b/test/movewindow.c index 760ac2f4..b8e9e049 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.46 2017/12/23 21:36:59 tom Exp $ * * Demonstrate move functions for windows and derived windows from the curses * library. @@ -45,14 +45,16 @@ TODO: */ #include -#include + +#if HAVE_MVDERWIN && HAVE_MVWIN + #include #ifdef HAVE_XCURSES #undef derwin #endif -#ifdef NCURSES_VERSION +#if defined(NCURSES_VERSION) || defined(PDCURSES) #define CONST_FMT const #else #define CONST_FMT /* nothing */ @@ -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