summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/math.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 3ef96ca9de..e7d6308056 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -31,6 +31,12 @@
#define M_PI 3.14159265358979323846
#endif
+#ifdef PHP_WIN32
+# define finite(x) _finite(x)
+# define isnan(x) _isnan(x)
+# define isinf(x) _isnan(x)
+#endif
+
/* {{{ proto int abs(int number)
Return the absolute value of the number */