From ce349f0e3e4d9a691befa542cee52df2e172bb9d Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 29 Jun 2019 01:11:52 +0200 Subject: [PATCH] Remove HAVE_STRING_H, HAVE_STDARG_H, and HAVE_STDLIB_H These symbols are defined by the build system to check the presence of the standard C89 headers. Since C89 is really widely adopted across systems already, these checks are obsolete today and not needed. http://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 Some of these checks are also removed since PHP-7.4. --- pecl-compat/compat.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pecl-compat/compat.h b/pecl-compat/compat.h index 82b31936..c9c9ac53 100644 --- a/pecl-compat/compat.h +++ b/pecl-compat/compat.h @@ -46,9 +46,7 @@ # include "config.h" #endif -#if HAVE_STRING_H -# include -#endif +#include #ifdef HAVE_SYS_TYPES_H # include @@ -67,13 +65,8 @@ # include #endif -#ifdef HAVE_STDARG_H #include -#endif - -#ifdef HAVE_STDLIB_H -# include -#endif +#include #ifdef HAVE_UNISTD_H # include