]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/color_set.c
ncurses 5.5
[ncurses.git] / test / color_set.c
index ed061486d612f820cac734b39e24e2a5f9616fa3..4ff61674837db471f78f9f868be5720999a003da 100644 (file)
@@ -1,9 +1,11 @@
 /*
- * $Id: color_set.c,v 1.2 2003/12/07 00:08:47 tom Exp $
+ * $Id: color_set.c,v 1.3 2004/04/10 20:10:28 tom Exp $
  */
 
 #include <test.priv.h>
 
+#ifdef HAVE_COLOR_SET
+
 #define SHOW(n) ((n) == ERR ? "ERR" : "OK")
 
 int
@@ -53,3 +55,11 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
 
     ExitProgram(EXIT_SUCCESS);
 }
+#else
+int
+main(void)
+{
+    printf("This program requires the curses color_set function\n");
+    ExitProgram(EXIT_FAILURE);
+}
+#endif