diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index a39cfe982..29083b6cb 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,12 @@ +2008-10-11 Keith Marshall + + Make strtod() inline definition C89 compliant. + (Issue reported by Ilya Shestopalov and Ian Puleston) + (Correction identified by Danny Smith) + + * include/stdlib.h (strtod): Declare as `__inline__', not `inline'; + reformat inline function definition. + 2008-10-04 Chris Sutcliffe * include/_mingw.h: Increment version to 3.15.1 and introduce diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h index 7af2b83a9..b58643059 100644 --- a/winsup/mingw/include/stdlib.h +++ b/winsup/mingw/include/stdlib.h @@ -314,8 +314,11 @@ double __cdecl __MINGW_NOTHROW __strtod (const char*, char**); #else static #endif /* Not __cplusplus */ -inline double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr) -{ return __strtod(__nptr, __endptr); } +__inline__ double __cdecl __MINGW_NOTHROW +strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr) +{ + return __strtod(__nptr, __endptr); +} float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char ** __restrict__); long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__, char ** __restrict__); #else