]> granicus.if.org Git - graphviz/commitdiff
Use <limits.h> in favor of <values.h>
authorErwin Janssen <erwinjanssen@outlook.com>
Wed, 28 Dec 2016 19:42:43 +0000 (20:42 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 4 Jan 2017 23:30:14 +0000 (00:30 +0100)
The header <values.h> is obsolete in favor of <limits.h>, which is part of
the standard C library.

configure.ac
lib/common/arith.h
lib/fdpgen/layout.c
lib/sfdpgen/sfdpinit.c
windows/include/config.h

index dc11bb18841198b65ddaef2e579aea0f19e84c89..5af4945c5397aff025714aac917906f732c96711 100644 (file)
@@ -418,7 +418,7 @@ dnl Checks for header files
 
 # AC_HEADER_STDC
 AC_CHECK_HEADERS(malloc.h \
-       fcntl.h search.h values.h limits.h termios.h \
+       fcntl.h search.h termios.h \
        unistd.h strings.h \
        sys/time.h sys/types.h sys/select.h \
        sys/stat.h sys/mman.h \
index c1811deb1e35a74d682371fee2749ae185df4880..295acd0163e21ca5935db80074c4fd1a31ed1f8c 100644 (file)
@@ -23,9 +23,6 @@
 #endif
 
 #include <limits.h>
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
 #include <math.h>
 
 #ifdef __cplusplus
index 3d5760c90c7e0957d4794a9642ed0445359e5e69..c61bd0c5abaccc6745e53fb1945000b208ab3e3c 100644 (file)
 #define FDP_PRIVATE 1
 
 #include "config.h"
-#ifdef HAVE_LIMITS_H
 #include <limits.h>
-#else
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
-#endif
 #include <inttypes.h>
 #include <assert.h>
 #include "tlayout.h"
index f2719fede67661ede1660350eaec17e3d1aed318..4b07a53237e3370dd4f8d83b9fbf504c092a8e0d 100644 (file)
 
 
 #include "config.h"
-#ifdef HAVE_LIMITS_H
 #include <limits.h>
-#else
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
-#endif
 #include <sfdp.h>
 #include <neato.h>
 #include <adjust.h>
index 00d9b7a3d8130989ab16b2cb05dba48a009fb504..b6fda29654030546fa043bc4dd208eea85e26417 100644 (file)
 /* Define if you have the Z library */
 #define HAVE_LIBZ 1
 
-/* Define to 1 if you have the <limits.h> header file. */
-#define HAVE_LIMITS_H 1
-
 /* Define to 1 if you have the `lrand48' function. */
 /* #undef HAVE_LRAND48 */
 
 /* Define to 1 if you have the <unistd.h> header file. */
 //#define HAVE_UNISTD_H 1
 
-/* Define to 1 if you have the <values.h> header file. */
-//#define HAVE_VALUES_H 1
-
 /* Define to 1 if you have the `vsnprintf' function. */
 #define HAVE_VSNPRINTF 1