]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/popup_msg.c
ncurses 6.0 - patch 20170909
[ncurses.git] / test / popup_msg.c
index 0b151febfc5a904c73e8cb4464ec622ec67d822c..5a351731a25e14f8d6adbedc99e22a0e4c34e5d6 100644 (file)
@@ -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 <popup_msg.h>
 
+#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