X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fmovewindow.c;h=dca14d44b9d34c09c03671d47946fd155d364192;hp=285d92ef73a9ac04de2d690d260ab054ea63a72e;hb=e23d7db3de8b85766c7c1ccf66b738870b473da2;hpb=5d8dbcdd9423bf9821db414fd9ec792ccf1f1027 diff --git a/test/movewindow.c b/test/movewindow.c index 285d92ef..dca14d44 100644 --- a/test/movewindow.c +++ b/test/movewindow.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2006-2013,2017 Free Software Foundation, Inc. * + * Copyright (c) 2006-2017,2018 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: movewindow.c,v 1.45 2017/09/06 20:08:11 tom Exp $ + * $Id: movewindow.c,v 1.47 2018/06/09 17:35:50 tom Exp $ * * Demonstrate move functions for windows and derived windows from the curses * library. @@ -54,7 +54,7 @@ TODO: #undef derwin #endif -#ifdef NCURSES_VERSION +#if defined(NCURSES_VERSION) || defined(PDCURSES) #define CONST_FMT const #else #define CONST_FMT /* nothing */ @@ -106,7 +106,7 @@ message(int lineno, CONST_FMT char *fmt, va_list argp) addstr(buffer); } #else - vwprintw(stdscr, fmt, argp); + vw_printw(stdscr, fmt, argp); #endif move(y, x);