From: Piotr Caban Subject: jscript: Fix compilation issues when dtoa is defined in headers Message-Id: <51FF93A6.9020904@codeweavers.com> Date: Mon, 05 Aug 2013 13:59:34 +0200 --- dlls/jscript/number.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/jscript/number.c b/dlls/jscript/number.c index 4dc07af..d60925c 100644 --- a/dlls/jscript/number.c +++ b/dlls/jscript/number.c @@ -54,7 +54,7 @@ static inline NumberInstance *number_this(vdisp_t *jsthis) return is_vclass(jsthis, JSCLASS_NUMBER) ? number_from_vdisp(jsthis) : NULL; } -static inline void dtoa(double d, WCHAR *buf, int size, int *dec_point) +static inline void number_to_str(double d, WCHAR *buf, int size, int *dec_point) { ULONGLONG l; int i; @@ -113,7 +113,7 @@ static inline jsstr_t *number_to_fixed(double val, int prec) if(buf_size > NUMBER_DTOA_SIZE) buf_size = NUMBER_DTOA_SIZE; - dtoa(val, buf, buf_size, &dec_point); + number_to_str(val, buf, buf_size, &dec_point); dec_point++; size = 0; if(neg) @@ -171,7 +171,7 @@ static inline jsstr_t *number_to_exponential(double val, int prec) buf_size = prec+2; if(buf_size<2 || buf_size>NUMBER_DTOA_SIZE) buf_size = NUMBER_DTOA_SIZE; - dtoa(val, buf, buf_size, &dec_point); + number_to_str(val, buf, buf_size, &dec_point); buf_size--; if(prec == -1) for(; buf_size>1 && buf[buf_size-1]=='0'; buf_size--)