]> granicus.if.org Git - graphviz/commitdiff
Remove definition and usage of HAVE_TIME_H
authorErwin Janssen <erwinjanssen@outlook.com>
Sun, 11 Dec 2016 00:59:19 +0000 (01:59 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 21 Dec 2016 13:54:25 +0000 (14:54 +0100)
The header <time.h> is part of the standard C library and is always
available, checking is therefore not needed.

cmd/tools/graph_generator.c
configure.ac
windows/include/config.h

index fca0838b06b1b6fb7b8490e1d2d0626e9eac37b0..a0f747b3ae1e40d7e3aaa7e061a0132df5cee700 100644 (file)
@@ -16,9 +16,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
-#ifdef HAVE_TIME_H
 #include <time.h>
-#endif
 #include <graph_generator.h>
 
 void makePath(int n, edgefn ef)
index 665a573569338d9d659078cf557d0d709ce5f341..8278e0d03ba3915696d4faedf14f4aa4cded31ff 100644 (file)
@@ -427,7 +427,7 @@ dnl Checks for header files
 # AC_HEADER_STDC
 AC_CHECK_HEADERS(malloc.h \
        fcntl.h search.h pthread.h values.h limits.h termios.h \
-       errno.h time.h unistd.h strings.h setjmp.h \
+       errno.h unistd.h strings.h setjmp.h \
        sys/time.h sys/times.h sys/types.h sys/select.h \
        sys/stat.h sys/mman.h \
        sys/ioctl.h sys/inotify.h langinfo.h libintl.h crt_externs.h)
index 1dc49e97740d41ec3e547f9c118148ea0b0e6e40..0aa927027c3c6032f25222482921da475ff3da44 100644 (file)
 /* Define to 1 if you have the <termios.h> header file. */
 /* #undef HAVE_TERMIOS_H */
 
-/* Define to 1 if you have the <time.h> header file. */
-#define HAVE_TIME_H 1
-
 /* Define to 1 if you have the <tkInt.h> header file. */
 /* #undef HAVE_TKINT_H */