]> granicus.if.org Git - php/commitdiff
These new math functions are not supported on Win32
authorFrank M. Kromann <fmk@php.net>
Wed, 1 Aug 2001 16:55:24 +0000 (16:55 +0000)
committerFrank M. Kromann <fmk@php.net>
Wed, 1 Aug 2001 16:55:24 +0000 (16:55 +0000)
ext/standard/basic_functions.c
ext/standard/math.c

index daa30e78da9710065b9c50e8471c8bb756896d8d..7848552f1d1f7c5fda86139dc4073132d59a3182 100644 (file)
@@ -289,9 +289,11 @@ function_entry basic_functions[] = {
        PHP_FE(sinh,                                                                            NULL)
        PHP_FE(cosh,                                                                            NULL)
        PHP_FE(tanh,                                                                            NULL)
+#ifndef PHP_WIN32
        PHP_FE(asinh,                                                                   NULL)
        PHP_FE(acosh,                                                                   NULL)
        PHP_FE(atanh,                                                                   NULL)
+#endif
        PHP_FE(pi,                                                                              NULL)
        PHP_FE(pow,                                                                             NULL)
        PHP_FE(exp,                                                                             NULL)
@@ -301,10 +303,14 @@ function_entry basic_functions[] = {
        PHP_FE(exp2,                                                                    NULL)
        PHP_FE(exp10,                                                                   NULL)
        PHP_FE(log2,                                                                    NULL)
+#ifndef PHP_WIN32
        PHP_FE(cbrt,                                                                    NULL)
+#endif
        PHP_FE(hypot,                                                                   NULL)
+#ifndef PHP_WIN32
        PHP_FE(expm1,                                                                   NULL)
        PHP_FE(log1p,                                                                   NULL)
+#endif
        PHP_FE(deg2rad,                                                                 NULL)
        PHP_FE(rad2deg,                                                                 NULL)
        PHP_FE(bindec,                                                                  NULL)
index 2201fc04891a664043ac32d1f4d9456541242a66..a4fcc633576c15da1b8d152a18427d7d1809c043 100644 (file)
@@ -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) */