mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Merge branch 'PHP-7.4'
* PHP-7.4: Remove HAVE_LIMITS_H
This commit is contained in:
commit
309edb070d
@ -35,9 +35,7 @@ char *alloca ();
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
# if _WIN32
|
||||
|
@ -8,7 +8,6 @@ AC_REQUIRE([AC_PROG_CC])
|
||||
AC_CHECK_HEADERS(
|
||||
inttypes.h \
|
||||
stdint.h \
|
||||
limits.h \
|
||||
malloc.h \
|
||||
unistd.h \
|
||||
sys/types.h \
|
||||
|
@ -77,9 +77,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#if HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
@ -60,9 +60,7 @@
|
||||
# include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIMITS_H
|
||||
# include <limits.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
|
||||
#if HAVE_ALLOCA_H && !defined(_ALLOCA_H)
|
||||
# include <alloca.h>
|
||||
|
@ -49,9 +49,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
# include "win32/nice.h"
|
||||
|
@ -90,12 +90,6 @@ void register_string_constants(INIT_FUNC_ARGS)
|
||||
|
||||
#ifdef HAVE_LOCALECONV
|
||||
/* If last members of struct lconv equal CHAR_MAX, no grouping is done */
|
||||
|
||||
/* This is bad, but since we are going to be hardcoding in the POSIX stuff anyway... */
|
||||
# ifndef HAVE_LIMITS_H
|
||||
# define CHAR_MAX 127
|
||||
# endif
|
||||
|
||||
REGISTER_LONG_CONSTANT("CHAR_MAX", CHAR_MAX, CONST_CS | CONST_PERSISTENT);
|
||||
#endif
|
||||
|
||||
|
@ -22,10 +22,8 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -243,9 +243,7 @@ char *strerror(int);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
#ifndef LONG_MAX
|
||||
#define LONG_MAX 2147483647L
|
||||
|
Loading…
Reference in New Issue
Block a user