]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/tclock.c
ncurses 5.9 - patch 20111022
[ncurses.git] / test / tclock.c
index fdcb446b58a78215f69322bf31951696eaa8e3f7..fb44725d3209c1244914cda330e0a4ed248f0d82 100644 (file)
@@ -1,7 +1,9 @@
-/* $Id: tclock.c,v 1.29 2010/11/14 01:04:52 tom Exp $ */
+/* $Id: tclock.c,v 1.30 2011/03/22 09:16:00 tom Exp $ */
 
 #include <test.priv.h>
 
 
 #include <test.priv.h>
 
+#if HAVE_MATH_H
+
 #include <math.h>
 
 #if TIME_WITH_SYS_TIME
 #include <math.h>
 
 #if TIME_WITH_SYS_TIME
@@ -256,3 +258,11 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
     endwin();
     ExitProgram(EXIT_SUCCESS);
 }
     endwin();
     ExitProgram(EXIT_SUCCESS);
 }
+#else
+int
+main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
+{
+    printf("This program requires the development header math.h\n");
+    ExitProgram(EXIT_FAILURE);
+}
+#endif