cvs: php-src(PHP_5_1) /ext/standard basic_functions.c php_math.h
| From: | Antony Dovgal | Date: | Fri, 13 Jan 2006 13:04:27 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/standard basic_functions.c php_math.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36490@lists.php.net to get a copy of this message | ||
tony2001 Fri Jan 13 13:04:27 2006 UTC
Modified files: (Branch: PHP_5_1)
/php-src/ext/standard basic_functions.c php_math.h
Log:
MFH: add missing ifdefs
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/basic_functions.c?r1=1.725.2.17&r2=1.725.2.18&diff_format=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.725.2.17
php-src/ext/standard/basic_functions.c:1.725.2.18
--- php-src/ext/standard/basic_functions.c:1.725.2.17 Wed Jan 4 21:31:29 2006
+++ php-src/ext/standard/basic_functions.c Fri Jan 13 13:04:27 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.725.2.17 2006/01/04 21:31:29 derick Exp $ */
+/* $Id: basic_functions.c,v 1.725.2.18 2006/01/13 13:04:27 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.28.2.1&r2=1.28.2.2&diff_format=u
Index: php-src/ext/standard/php_math.h
diff -u php-src/ext/standard/php_math.h:1.28.2.1 php-src/ext/standard/php_math.h:1.28.2.2
--- php-src/ext/standard/php_math.h:1.28.2.1 Sun Jan 1 12:50:15 2006
+++ php-src/ext/standard/php_math.h Fri Jan 13 13:04:27 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_math.h,v 1.28.2.1 2006/01/01 12:50:15 sniper Exp $ */
+/* $Id: php_math.h,v 1.28.2.2 2006/01/13 13:04:27 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);