]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/test_get_wstr.c
ncurses 5.7 - patch 20110212
[ncurses.git] / test / test_get_wstr.c
index eb229a52a00fe0b1785f5a4ff42b12a21766a37b..dc01b0e69c07b325a056ce81047cfc53a5abfb6e 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 2007,2009 Free Software Foundation, Inc.                   *
+ * Copyright (c) 2007-2009,2011 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: test_get_wstr.c,v 1.6 2009/08/29 19:02:25 tom Exp $
+ * $Id: test_get_wstr.c,v 1.8 2011/01/15 18:15:11 tom Exp $
  *
  * Author: Thomas E Dickey
  *
@@ -44,6 +44,9 @@
 
 #include <test.priv.h>
 
+#if HAVE_CHGAT
+/* NetBSD curses wchgat */
+
 #if USE_WIDEC_SUPPORT
 
 #define BASE_Y 6
@@ -359,3 +362,11 @@ main(void)
     ExitProgram(EXIT_FAILURE);
 }
 #endif
+#else
+int
+main(void)
+{
+    printf("This program requires the curses chgat function\n");
+    ExitProgram(EXIT_FAILURE);
+}
+#endif