diff options
author | Keith Marshall <keithmarshall@@users.sf.net> | 2008-10-11 21:47:56 +0000 |
---|---|---|
committer | Keith Marshall <keithmarshall@@users.sf.net> | 2008-10-11 21:47:56 +0000 |
commit | 3c68dd93138548e8abde84ed11e4542f24006a15 (patch) | |
tree | 57e4ec476c407359a9f2471ddcee9654fc03243d /winsup/mingw | |
parent | c7fadd4142121d9ccfc69c0ecf10992caa94e076 (diff) | |
download | newlib-3c68dd93138548e8abde84ed11e4542f24006a15.zip newlib-3c68dd93138548e8abde84ed11e4542f24006a15.tar.gz newlib-3c68dd93138548e8abde84ed11e4542f24006a15.tar.bz2 |
Make strtod() inline definition C89 compliant.
Diffstat (limited to 'winsup/mingw')
-rw-r--r-- | winsup/mingw/ChangeLog | 9 | ||||
-rw-r--r-- | winsup/mingw/include/stdlib.h | 7 |
2 files changed, 14 insertions, 2 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index a39cfe9..29083b6 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,12 @@ +2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net> + + 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 <ir0nh34d@users.sourceforge.net> * 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 7af2b83..b586430 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 |