From b5fd1c0ec3fbd9a11072730a1df74571e922bf38 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 13 Jan 2006 13:04:01 +0000 Subject: [PATCH] add missing ifdefs --- ext/standard/basic_functions.c | 2 ++ ext/standard/php_math.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index e421c1386c..ba4569212f 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -382,7 +382,9 @@ zend_function_entry basic_functions[] = { #endif #if !defined(PHP_WIN32) && !defined(NETWARE) PHP_FE(expm1, NULL) +# ifdef HAVE_LOG1P PHP_FE(log1p, NULL) +# endif #endif PHP_FE(pi, NULL) diff --git a/ext/standard/php_math.h b/ext/standard/php_math.h index 5cff045a26..5e531249f7 100644 --- a/ext/standard/php_math.h +++ b/ext/standard/php_math.h @@ -68,8 +68,9 @@ PHP_FUNCTION(rad2deg); */ PHP_FUNCTION(hypot); PHP_FUNCTION(expm1); +#ifdef HAVE_LOG1P PHP_FUNCTION(log1p); - +#endif PHP_FUNCTION(sinh); PHP_FUNCTION(cosh); -- 2.40.0