summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-04-07 15:20:02 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-04-07 15:20:02 +0200
commitfd1ad1e25a6d0676a560d237ff5f44faa6e1dc87 (patch)
tree04fc48df74385bd7be760f9213dbe189281ba459 /TSRM
parentafd52f9d9986d92dd0c63832a07ab1a16bf11d53 (diff)
downloadphp-git-fd1ad1e25a6d0676a560d237ff5f44faa6e1dc87.tar.gz
Remove HAVE_LIMITS_H
The `<limits.h>` header file is part of the standard C89 headers [1] and on current systems can be included unconditionally. Since PHP requires at least C89 or greater, the `HAVE_LIMITS_H` symbol defined by Autoconf in configure.ac [2] can be ommitted and simplifed however due to bundled file library (libmagic) and timelib still using it, the removal there was omitted and done only in Zend.m4 file. Current bundled libraries libtime, oniguruma, and libmagic still include partial `HAVE_LIMITS_H` usage and will be more refactored when this is possible. Refs: [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_config_common.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/TSRM/tsrm_config_common.h b/TSRM/tsrm_config_common.h
index 64cecd912a..d3c7672d48 100644
--- a/TSRM/tsrm_config_common.h
+++ b/TSRM/tsrm_config_common.h
@@ -35,9 +35,7 @@ char *alloca ();
#include <unistd.h>
#endif
-#if HAVE_LIMITS_H
#include <limits.h>
-#endif
#ifndef MAXPATHLEN
# if _WIN32