diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index 5be8d7e4f5ced..f4609428326c7 100644 --- a/Zend/zend_portability.h +++ b/Zend/zend_portability.h @@ -444,14 +444,6 @@ char *alloca(); # define ZTS_V 0 #endif -#ifndef LONG_MAX -# define LONG_MAX 2147483647L -#endif - -#ifndef LONG_MIN -# define LONG_MIN (- LONG_MAX - 1) -#endif - #define MAX_LENGTH_OF_DOUBLE 32 #undef MIN diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c index 6a358bb1128eb..b2995197c9aa4 100644 --- a/Zend/zend_strtod.c +++ b/Zend/zend_strtod.c @@ -292,10 +292,6 @@ static double private_mem[PRIVATE_mem], *pmem_next = private_mem; #define DBL_MAX 1.7014118346046923e+38 #endif -#ifndef LONG_MAX -#define LONG_MAX 2147483647 -#endif - #else /* ifndef Bad_float_h */ #include "float.h" #endif /* Bad_float_h */ diff --git a/ext/bcmath/libbcmath/src/bcmath.h b/ext/bcmath/libbcmath/src/bcmath.h index 07dd84ff90d11..5b4160bf4002a 100644 --- a/ext/bcmath/libbcmath/src/bcmath.h +++ b/ext/bcmath/libbcmath/src/bcmath.h @@ -74,11 +74,6 @@ typedef struct bc_struct { #define MAX(a, b) ((a)>(b)?(a):(b)) #define MIN(a, b) ((a)>(b)?(b):(a)) -#ifndef LONG_MAX -#define LONG_MAX 0x7fffffff -#endif - - /* Function Prototypes */ void bc_init_numbers(void); diff --git a/main/php.h b/main/php.h index 2ab4c39de5bf7..276360d0f96bf 100644 --- a/main/php.h +++ b/main/php.h @@ -225,14 +225,6 @@ typedef unsigned int socklen_t; #include -#ifndef LONG_MAX -#define LONG_MAX 2147483647L -#endif - -#ifndef LONG_MIN -#define LONG_MIN (- LONG_MAX - 1) -#endif - #ifndef INT_MAX #define INT_MAX 2147483647 #endif