From 6d98fc38b53c0ce803bf5cc8de05e2083eb6cd41 Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Sun, 28 Nov 2004 12:44:28 +0000 Subject: Fixed: removed possible integer over-/underflows --- main/php.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'main/php.h') diff --git a/main/php.h b/main/php.h index 6c886f2b4d..9fd6619057 100644 --- a/main/php.h +++ b/main/php.h @@ -222,6 +222,14 @@ char *strerror(int); #define LONG_MIN (- LONG_MAX - 1) #endif +#ifndef INT_MAX +#define INT_MAX 2147483647 +#endif + +#ifndef INT_MIN +#define INT_MIN (- INT_MAX - 1) +#endif + #define PHP_GCC_VERSION ZEND_GCC_VERSION #define PHP_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_MALLOC #define PHP_ATTRIBUTE_FORMAT ZEND_ATTRIBUTE_FORMAT -- cgit v1.2.1