diff options
author | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2008-05-07 02:35:16 +0000 |
---|---|---|
committer | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2008-05-07 02:35:16 +0000 |
commit | a8e45d3968c8c5bdc34b800d3e2c68d416181470 (patch) | |
tree | a527a8b8a8cd9ff121fc1d4833c1860d0c7f1556 | |
parent | edce6d854609e87de0f03cb1fc8045e7dd476b28 (diff) | |
download | cygnal-a8e45d3968c8c5bdc34b800d3e2c68d416181470.tar.gz cygnal-a8e45d3968c8c5bdc34b800d3e2c68d416181470.tar.bz2 cygnal-a8e45d3968c8c5bdc34b800d3e2c68d416181470.zip |
2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
* mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
* include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
-rw-r--r-- | winsup/mingw/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/mingw/include/stdlib.h | 6 | ||||
-rwxr-xr-x | winsup/mingw/mingwex/gdtoa/strtodnrp.c | 3 |
3 files changed, 9 insertions, 5 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index da2e79464..25ce0db75 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,8 @@ +2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br> + + * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod. + * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set. + 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br> * include/sys/types.h (useconds_t): typedef. diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h index 0d6cf60be..693185c07 100644 --- a/winsup/mingw/include/stdlib.h +++ b/winsup/mingw/include/stdlib.h @@ -307,11 +307,13 @@ _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**); #if !defined __NO_ISOCEXT /* in libmingwex.a */ -double __cdecl __MINGW_NOTHROW strtod (const char*, char**); +double __cdecl __MINGW_NOTHROW __strtod (const char*, char**); +#define strtod __strtod float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char ** __restrict__); long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__, char ** __restrict__); +#else +_CRTIMP double __cdecl __MINGW_NOTHROW strtod (const char*, char**); #endif /* __NO_ISOCEXT */ _CRTIMP long __cdecl __MINGW_NOTHROW strtol (const char*, char**, int); diff --git a/winsup/mingw/mingwex/gdtoa/strtodnrp.c b/winsup/mingw/mingwex/gdtoa/strtodnrp.c index 26d0fc3cc..ac81b2bbd 100755 --- a/winsup/mingw/mingwex/gdtoa/strtodnrp.c +++ b/winsup/mingw/mingwex/gdtoa/strtodnrp.c @@ -85,6 +85,3 @@ __strtod(CONST char *s, char **sp) u.L[_0] |= 0x80000000L; return u.d; } - -double __cdecl strtod(const char *s, char **sp) - __attribute__((alias("__strtod"))); |