summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-02-28 00:41:30 +0100
committerPeter Kokot <peterkokot@gmail.com>2019-03-01 19:22:44 +0100
commita700451706b1a6da75f08a6a7e331635e17a6e99 (patch)
tree5b5f7920c647e6e8123a6bb053876623c7150ece /main/php.h
parent7c351ba65ca861470373dd1467138d668dcac5f3 (diff)
downloadphp-git-a700451706b1a6da75f08a6a7e331635e17a6e99.tar.gz
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 `<string.h>`, `<stdlib.h>`, `<stdarg.h>`, `<float.h>`,... 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
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h12
1 files changed, 1 insertions, 11 deletions
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 <string.h>
-#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 <string.h>
#ifndef HAVE_STRERROR
char *strerror(int);