summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2001-12-03 05:12:48 +0000
committerFrank M. Kromann <fmk@php.net>2001-12-03 05:12:48 +0000
commit8e408647706dc5d2c9fa37bd31fade731723a3d1 (patch)
treed412f6a9385fb54cdc1f9c8f511763bb3ec6378e
parentc07cf5c2a5ce32a6f371e1beb914611e85d92cd6 (diff)
downloadphp-git-8e408647706dc5d2c9fa37bd31fade731723a3d1.tar.gz
Make _php_math_number_format available from shared extensions
-rw-r--r--ext/standard/math.c5
-rw-r--r--ext/standard/php_math.h3
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 57a5de0796..1fea12d7d7 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -31,9 +31,6 @@
#define M_PI 3.14159265358979323846
#endif
-
-char *_php_math_number_format(double, int, char , char);
-
/* {{{ proto int abs(int number)
Return the absolute value of the number */
@@ -977,7 +974,7 @@ PHP_FUNCTION(base_convert)
/* }}} */
/* {{{ _php_math_number_format */
-char *_php_math_number_format(double d, int dec, char dec_point, char thousand_sep)
+PHPAPI char *_php_math_number_format(double d, int dec, char dec_point, char thousand_sep)
{
char *tmpbuf, *resbuf;
char *s, *t; /* source, target */
diff --git a/ext/standard/php_math.h b/ext/standard/php_math.h
index beef7dd160..07160c274d 100644
--- a/ext/standard/php_math.h
+++ b/ext/standard/php_math.h
@@ -21,6 +21,9 @@
#ifndef PHP_MATH_H
#define PHP_MATH_H
+
+PHPAPI char *_php_math_number_format(double, int, char , char);
+
PHP_FUNCTION(sin);
PHP_FUNCTION(cos);
PHP_FUNCTION(tan);