summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.h
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_operators.h')
-rw-r--r--Zend/zend_operators.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index 20369c7fd5..404209660c 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -22,6 +22,21 @@
#define _OPERATORS_H
#include <errno.h>
+#include <math.h>
+
+#ifndef HAVE_FINITE
+#ifndef finite /* in case it's already a macro */
+#define finite(a) isfinite(a) /* HPUX 11 only has isfinite() */
+#endif
+#else
+#if HAVE_IEEEFP_H
+#include <ieeefp.h>
+#endif
+#endif
+
+#if WITH_BCMATH
+#include "ext/bcmath/number.h"
+#endif
#define MAX_LENGTH_OF_LONG 18
#define MAX_LENGTH_OF_DOUBLE 32