From a700451706b1a6da75f08a6a7e331635e17a6e99 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 28 Feb 2019 00:41:30 +0100 Subject: Remove obsolescent AC_HEADER_STDC and memcpy check Autoconf 2.59d (released in 2006) [1] started promoting several macros as not relevant for newer systems anymore, including the `AC_HEADER_STDC`. This macro checks if given system has C89 compliant header files such as ``, ``, ``, ``,... and defines the `STDC_HEADERS` symbol [2]. Case is that current systems should be well supported with at least C89 standard headers [3]. Given headers are still additionally checked with the `AC_PROG_CC` macro, yet not needed anyway. Additionally, the HAVE_MEMCPY check has been removed. The memcpy function is standardized by C89 and later. Refs: [1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS [2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html [3] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 --- main/php.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'main/php.h') diff --git a/main/php.h b/main/php.h index 317a048405..066685cf9b 100644 --- a/main/php.h +++ b/main/php.h @@ -230,17 +230,7 @@ typedef unsigned int socklen_t; #include "zend_hash.h" #include "zend_alloc.h" #include "zend_stack.h" - -#if STDC_HEADERS -# include -#else -# ifndef HAVE_MEMCPY -# define memcpy(d, s, n) bcopy((s), (d), (n)) -# endif -# ifndef HAVE_MEMMOVE -# define memmove(d, s, n) bcopy ((s), (d), (n)) -# endif -#endif +#include #ifndef HAVE_STRERROR char *strerror(int); -- cgit v1.2.1