From d3ca28f5694e7848fb2b238bbe3e9564230ae65e Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 16 Sep 2018 01:14:08 +0200 Subject: Remove HAVE_STRING_H The C89 standard and later defines the `` header as part of the standard headers [1] and on current systems it is always present. Code included also `` header as an alterinative in some files. This kind of check was relevant on some older systems where the `` file included definitions for the C89 compliant ``. Today such alternative check is not required anymore. The `` file is part of the POSIX definition these days. Also Autoconf suggests doing this and relying on C89 or above [2] and [3]. This patch also cleans few unused `` inclusions in the libmbfl. [1]: https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2]: http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 [3]: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html --- configure.ac | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a07ee1399b..b5d413a5b9 100644 --- a/configure.ac +++ b/configure.ac @@ -51,11 +51,7 @@ AH_BOTTOM([ # include #endif -#ifdef HAVE_STRING_H -# include -#else -# include -#endif +#include #if ZEND_BROKEN_SPRINTF int zend_sprintf(char *buffer, const char *format, ...); @@ -447,7 +443,6 @@ pwd.h \ resolv.h \ signal.h \ stdarg.h \ -string.h \ syslog.h \ sysexits.h \ sys/ioctl.h \ -- cgit v1.2.1