2008-04-02 Ramiro Polla <ramiro@lisha.ufsc.br>

Make strtod() conform to C99.

        * include/stdlib.h (strtod): Declare this mingwex function, and...
        (_strtod): rename this MSVCRT counterpart.

        * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
This commit is contained in:
Chris Sutcliffe
2008-05-03 02:13:48 +00:00
parent c83490da03
commit 4f3fad2366
3 changed files with 14 additions and 1 deletions

View File

@ -307,8 +307,9 @@ _CRTIMP long __cdecl __MINGW_NOTHROW atol (const char*);
_CRTIMP int __cdecl __MINGW_NOTHROW _wtoi (const wchar_t *);
_CRTIMP long __cdecl __MINGW_NOTHROW _wtol (const wchar_t *);
#endif
_CRTIMP double __cdecl __MINGW_NOTHROW strtod (const char*, char**);
_CRTIMP double __cdecl __MINGW_NOTHROW _strtod (const char*, char**);
#if !defined __NO_ISOCEXT /* in libmingwex.a */
double __cdecl __MINGW_NOTHROW strtod (const char*, char**);
float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char ** __restrict__);
long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__, char ** __restrict__);
#endif /* __NO_ISOCEXT */