X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fpopup_msg.c;h=5a351731a25e14f8d6adbedc99e22a0e4c34e5d6;hp=0b151febfc5a904c73e8cb4464ec622ec67d822c;hb=5d8dbcdd9423bf9821db414fd9ec792ccf1f1027;hpb=a4dac84af1b18fb24d56d6251deeb3c61c437158 diff --git a/test/popup_msg.c b/test/popup_msg.c index 0b151feb..5a351731 100644 --- a/test/popup_msg.c +++ b/test/popup_msg.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: popup_msg.c,v 1.7 2017/04/15 19:16:41 tom Exp $ + * $Id: popup_msg.c,v 1.8 2017/09/03 21:05:01 tom Exp $ * * Show a multi-line message in a window which may extend beyond the screen. * @@ -37,6 +37,8 @@ #include +#if HAVE_NEWPAD + static WINDOW *old_window; static void @@ -167,3 +169,13 @@ popup_msg2(WINDOW *parent, char **msg) { popup_msg(parent, (const char *const *) msg); } + +#else +void +popup_msg(WINDOW *parent, const char *const *msg) +{ + (void) parent; + (void) msg; + beep(); +} +#endif