cvs: php-src /ext/standard basic_functions.c php_math.h
| From: | Antony Dovgal | Date: | Fri, 13 Jan 2006 13:04:01 +0000 |
| Subject: | cvs: php-src /ext/standard basic_functions.c php_math.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36489@lists.php.net to get a copy of this message | ||
tony2001 Fri Jan 13 13:04:01 2006 UTC
Modified files:
/php-src/ext/standard basic_functions.c php_math.h
Log:
add missing ifdefs
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/basic_functions.c?r1=1.746&r2=1.747&diff_format=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.746 php-src/ext/standard/basic_functions.c:1.747
--- php-src/ext/standard/basic_functions.c:1.746 Wed Jan 4 12:57:04 2006
+++ php-src/ext/standard/basic_functions.c Fri Jan 13 13:04:01 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.746 2006/01/04 12:57:04 derick Exp $ */
+/* $Id: basic_functions.c,v 1.747 2006/01/13 13:04:01 tony2001 Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -382,7 +382,9 @@
#endif
#if !defined(PHP_WIN32) && !defined(NETWARE)
PHP_FE(expm1, NULL)
+# ifdef HAVE_LOG1P
PHP_FE(log1p, NULL)
+# endif
#endif
PHP_FE(pi, NULL)
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/php_math.h?r1=1.29&r2=1.30&diff_format=u
Index: php-src/ext/standard/php_math.h
diff -u php-src/ext/standard/php_math.h:1.29 php-src/ext/standard/php_math.h:1.30
--- php-src/ext/standard/php_math.h:1.29 Sun Jan 1 13:09:55 2006
+++ php-src/ext/standard/php_math.h Fri Jan 13 13:04:01 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_math.h,v 1.29 2006/01/01 13:09:55 sniper Exp $ */
+/* $Id: php_math.h,v 1.30 2006/01/13 13:04:01 tony2001 Exp $ */
#ifndef PHP_MATH_H
#define PHP_MATH_H
@@ -68,8 +68,9 @@
*/
PHP_FUNCTION(hypot);
PHP_FUNCTION(expm1);
+#ifdef HAVE_LOG1P
PHP_FUNCTION(log1p);
-
+#endif
PHP_FUNCTION(sinh);
PHP_FUNCTION(cosh);