]> granicus.if.org Git - php/commitdiff
add missing ifdefs
authorAntony Dovgal <tony2001@php.net>
Fri, 13 Jan 2006 13:04:01 +0000 (13:04 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 13 Jan 2006 13:04:01 +0000 (13:04 +0000)
ext/standard/basic_functions.c
ext/standard/php_math.h

index e421c1386c4c4d11b5f4590685cb9ddc34b0ec03..ba4569212fb9040c998f5e392b75306ed056d3f0 100644 (file)
@@ -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)
index 5cff045a26b88d5007040256f584dee789e9fbf7..5e531249f7f32688fc321b38e66ecfe1610c1b43 100644 (file)
@@ -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);