diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 7ae68fdca..083981c6f 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,9 @@ +2011-05-24 Chris Sutcliffe + + * include/stdlib.h (strtod): Declare as extern to resolve compilation issues. + + Thanks to cgf for the report. + 2011-05-23 Chris Sutcliffe * include/time.h (daylight, timezone, tzname): Rework guards to expose when diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h index 84bd23da2..4df18aab3 100644 --- a/winsup/mingw/include/stdlib.h +++ b/winsup/mingw/include/stdlib.h @@ -310,11 +310,8 @@ _CRTIMP long __cdecl __MINGW_NOTHROW _wtol (const wchar_t *); #endif #if !defined __NO_ISOCEXT /* in libmingwex.a */ double __cdecl __MINGW_NOTHROW __strtod (const char*, char**); -__inline__ double __cdecl __MINGW_NOTHROW -strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr) -{ - return __strtod(__nptr, __endptr); -} +extern double __cdecl __MINGW_NOTHROW +strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr); float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char ** __restrict__); long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__, char ** __restrict__); #else