Commit 2e752a11 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

jscript: Fix compilation issues when dtoa is defined in headers.

parent 1f2d5563
...@@ -54,7 +54,7 @@ static inline NumberInstance *number_this(vdisp_t *jsthis) ...@@ -54,7 +54,7 @@ static inline NumberInstance *number_this(vdisp_t *jsthis)
return is_vclass(jsthis, JSCLASS_NUMBER) ? number_from_vdisp(jsthis) : NULL; 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; ULONGLONG l;
int i; int i;
...@@ -113,7 +113,7 @@ static inline jsstr_t *number_to_fixed(double val, int prec) ...@@ -113,7 +113,7 @@ static inline jsstr_t *number_to_fixed(double val, int prec)
if(buf_size > NUMBER_DTOA_SIZE) if(buf_size > NUMBER_DTOA_SIZE)
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++; dec_point++;
size = 0; size = 0;
if(neg) if(neg)
...@@ -171,7 +171,7 @@ static inline jsstr_t *number_to_exponential(double val, int prec) ...@@ -171,7 +171,7 @@ static inline jsstr_t *number_to_exponential(double val, int prec)
buf_size = prec+2; buf_size = prec+2;
if(buf_size<2 || buf_size>NUMBER_DTOA_SIZE) if(buf_size<2 || buf_size>NUMBER_DTOA_SIZE)
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--; buf_size--;
if(prec == -1) if(prec == -1)
for(; buf_size>1 && buf[buf_size-1]=='0'; buf_size--) for(; buf_size>1 && buf[buf_size-1]=='0'; buf_size--)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment