summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2004-11-28 12:44:28 +0000
committerStefan Esser <sesser@php.net>2004-11-28 12:44:28 +0000
commit6d98fc38b53c0ce803bf5cc8de05e2083eb6cd41 (patch)
tree9b993fd85fecd34bff547c15b3dd5c8e52b127f0 /main/php.h
parente0e157e6de4799c3cc00952fffc353c34e48459e (diff)
downloadphp-git-6d98fc38b53c0ce803bf5cc8de05e2083eb6cd41.tar.gz
Fixed: removed possible integer over-/underflows
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h8
1 files changed, 8 insertions, 0 deletions
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