Make strtod() inline definition C89 compliant.
This commit is contained in:
parent
c7fadd4142
commit
3c68dd9313
|
@ -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>
|
2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
|
||||||
|
|
||||||
* include/_mingw.h: Increment version to 3.15.1 and introduce
|
* include/_mingw.h: Increment version to 3.15.1 and introduce
|
||||||
|
|
|
@ -314,8 +314,11 @@ double __cdecl __MINGW_NOTHROW __strtod (const char*, char**);
|
||||||
#else
|
#else
|
||||||
static
|
static
|
||||||
#endif /* Not __cplusplus */
|
#endif /* Not __cplusplus */
|
||||||
inline double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr)
|
__inline__ double __cdecl __MINGW_NOTHROW
|
||||||
{ return __strtod(__nptr, __endptr); }
|
strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr)
|
||||||
|
{
|
||||||
|
return __strtod(__nptr, __endptr);
|
||||||
|
}
|
||||||
float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char ** __restrict__);
|
float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char ** __restrict__);
|
||||||
long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__, char ** __restrict__);
|
long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__, char ** __restrict__);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue