summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_operators.c10
-rw-r--r--Zend/zend_operators.h15
2 files changed, 15 insertions, 10 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index b21496305a..6b51218827 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -32,16 +32,6 @@
#include "zend_list.h"
#include "zend_fast_cache.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
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