From 7750cea91f072905f9e863de9115887bae46e1ef Mon Sep 17 00:00:00 2001 From: Chris Sutcliffe Date: Tue, 24 May 2011 22:43:29 +0000 Subject: [PATCH] 2011-05-24 Chris Sutcliffe * include/stdlib.h (strtod): Declare as extern to resolve compilation issues. Thanks to cgf for the report. --- winsup/mingw/ChangeLog | 6 ++++++ winsup/mingw/include/stdlib.h | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) 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 -- 2.43.5