2010-07-10 Ramiro Polla <ramiro.polla@gmail.com>
* stdlib.h (strtod): For ISO-C99 use posix version __strtod.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@2826 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/crt/ChangeLog b/mingw-w64-headers/crt/ChangeLog
index d7722bd..51fa3c1 100644
--- a/mingw-w64-headers/crt/ChangeLog
+++ b/mingw-w64-headers/crt/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-10 Ramiro Polla <ramiro.polla@gmail.com>
+
+ * stdlib.h (strtod): For ISO-C99 use posix version __strtod.
+
2010-06-26 Doug Semler <dougsemler@gmail.com>
* complex.h (cabs, cabsf, cabsl): New inlines to match new complex.
diff --git a/mingw-w64-headers/crt/stdlib.h b/mingw-w64-headers/crt/stdlib.h
index c573563..5089c9e 100644
--- a/mingw-w64-headers/crt/stdlib.h
+++ b/mingw-w64-headers/crt/stdlib.h
@@ -378,6 +378,10 @@
#ifdef _CRT_RAND_S
_CRTIMP errno_t __cdecl rand_s(unsigned int *randomValue);
#endif
+#if !defined __NO_ISOCEXT && (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
+ /* libmingwex.a provides a c99-compliant strtod() exported as __strtod() */
+#define strtod __strtod
+#endif /* __STDC_VERSION__ >= 199901L */
double __cdecl strtod(const char *_Str,char **_EndPtr);
float __cdecl strtof(const char *nptr, char **endptr);
long double __cdecl strtold(const char *, char **);