aboutsummaryrefslogtreecommitdiff
path: root/winsup/mingw/mingwex
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2008-05-03 02:13:48 +0000
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2008-05-03 02:13:48 +0000
commit4f3fad23669400274508c781eefd67ee09281f87 (patch)
treef14026e25fa6cd17d85d6bc644d5269b22084f0a /winsup/mingw/mingwex
parentc83490da03e98c3e6025cffbc73c3c03e8514e32 (diff)
downloadnewlib-4f3fad23669400274508c781eefd67ee09281f87.zip
newlib-4f3fad23669400274508c781eefd67ee09281f87.tar.gz
newlib-4f3fad23669400274508c781eefd67ee09281f87.tar.bz2
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.
Diffstat (limited to 'winsup/mingw/mingwex')
-rwxr-xr-xwinsup/mingw/mingwex/gdtoa/strtodnrp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/gdtoa/strtodnrp.c b/winsup/mingw/mingwex/gdtoa/strtodnrp.c
index ac81b2b..26d0fc3 100755
--- a/winsup/mingw/mingwex/gdtoa/strtodnrp.c
+++ b/winsup/mingw/mingwex/gdtoa/strtodnrp.c
@@ -85,3 +85,6 @@ __strtod(CONST char *s, char **sp)
u.L[_0] |= 0x80000000L;
return u.d;
}
+
+double __cdecl strtod(const char *s, char **sp)
+ __attribute__((alias("__strtod")));