]> granicus.if.org Git - graphviz/commitdiff
Remove define and usage of HAVE_STRING_H
authorErwin Janssen <erwinjanssen@outlook.com>
Sun, 18 Sep 2016 14:56:26 +0000 (16:56 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Sun, 18 Sep 2016 15:24:08 +0000 (17:24 +0200)
The header string.h is always present since we are compiling with standard C.
There is no need for this check, since it will always evaluate to true.
In addition to this, most includes of string.h to not use this check.

config.iffe
configure.ac
lib/common/render.h
plugin/pango/gvrender_pango.c
windows/include/config.h

index 50de3f8ffb3c61ca07b739e4848918f6d23aba5c..be5be11f96b74d97b6c3e0cb8c3980142ab1f094 100644 (file)
@@ -39,7 +39,6 @@ hdr stdarg
 hdr stdbool
 hdr stddef
 hdr stdint
-hdr string
 hdr strings
 hdr termios
 hdr unistd
index b1f2dc0a87f4ed9cd918956c6190f5ed5fa41910..8cde55a28be383a49fa7287f8171b2b07b0f2696 100644 (file)
@@ -427,7 +427,7 @@ dnl Checks for header files
 # AC_HEADER_STDC
 AC_CHECK_HEADERS(stdarg.h stddef.h stddef.h stdint.h malloc.h \
        fcntl.h search.h pthread.h values.h float.h limits.h termios.h \
-       errno.h time.h unistd.h fenv.h string.h strings.h inttypes.h setjmp.h \
+       errno.h time.h unistd.h fenv.h strings.h inttypes.h setjmp.h \
        sys/time.h sys/times.h sys/types.h sys/select.h fpu_control.h \
        sys/fpu.h sys/socket.h sys/stat.h sys/mman.h \
        sys/ioctl.h sys/inotify.h langinfo.h libintl.h crt_externs.h)
index 55c732733e9b9715562d4c0a42d886963ed65a01..22b8ac421e164eec6f74ac42483b35b1eb397b65 100644 (file)
@@ -35,9 +35,7 @@ extern "C" {
 #ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
-#ifdef HAVE_STRING_H
 #include <string.h>
-#endif
 
 #include <inttypes.h>
 
index a08664ff7445c9e0b21d37bcca16c0b55159247d..8f1ec9eb96fe4ed49d39d0d2e6c5ae2df2f7cbf4 100644 (file)
@@ -14,9 +14,7 @@
 #include "config.h"
 
 #include <stdlib.h>
-#ifdef HAVE_STRING_H
 #include <string.h>
-#endif
 
 #include "const.h"
 #include "gvplugin_render.h"
index 195a64203b2fcf9c986f0a0768344da5cb659886..c69f0b21eca233bd6bef943959da9e0295c6e800 100644 (file)
 /* Define to 1 if you have the <strings.h> header file. */
 //#define HAVE_STRINGS_H 1
 
-/* Define to 1 if you have the <string.h> header file. */
-#define HAVE_STRING_H 1
-
 /* Define to 1 if you have the `strncasecmp' function. */
 //#define HAVE_STRNCASECMP 1