summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2001-08-01 16:55:24 +0000
committerFrank M. Kromann <fmk@php.net>2001-08-01 16:55:24 +0000
commit2794a0e69a866189703b94377bcf1c9528d70ec8 (patch)
treed58fccd638959a2f30201ee025a47997adef19b1 /ext/standard/math.c
parentfa6b5cdde71e8f6641756fbaa8b24e375451379b (diff)
downloadphp-git-2794a0e69a866189703b94377bcf1c9528d70ec8.tar.gz
These new math functions are not supported on Win32
Diffstat (limited to 'ext/standard/math.c')
-rw-r--r--ext/standard/math.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 2201fc0489..a4fcc63357 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -312,6 +312,8 @@ PHP_FUNCTION(tanh)
}
/* }}} */
+
+#ifndef PHP_WIN32
/* {{{ proto double asinh(double number)
Returns the inverse hyperbolic sine of the number,
i.e. the value whose hyperbolic sine is number */
@@ -363,6 +365,7 @@ PHP_FUNCTION(atanh)
}
/* }}} */
+#endif
/* {{{ proto double pi(void)
Returns an approximation of pi */
@@ -442,6 +445,8 @@ PHP_FUNCTION(exp10)
}
/* }}} */
+
+#ifndef PHP_WIN32
/* {{{ proto double expm1(double number)
Returns exp(number) - 1, computed in a way that accurate even when
the value of number is close to zero */
@@ -476,6 +481,8 @@ PHP_FUNCTION(log1p)
}
/* }}} */
+
+#endif
/* {{{ proto double log(double number)
Returns the natural logarithm of the number */
@@ -542,6 +549,8 @@ PHP_FUNCTION(sqrt)
}
/* }}} */
+
+#ifndef PHP_WIN32
/* {{{ proto double cbrt(double number)
Returns the cubic root of the number */
@@ -558,6 +567,8 @@ PHP_FUNCTION(cbrt)
}
/* }}} */
+#endif
+
/* {{{ proto double hypot(double num1, double num2)
Returns sqrt( num1*num1 + num2*num2) */