Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Marshall <keithmarshall@@users.sf.net>2008-10-12 01:47:56 +0400
committerKeith Marshall <keithmarshall@@users.sf.net>2008-10-12 01:47:56 +0400
commit3c68dd93138548e8abde84ed11e4542f24006a15 (patch)
tree57e4ec476c407359a9f2471ddcee9654fc03243d /winsup/mingw
parentc7fadd4142121d9ccfc69c0ecf10992caa94e076 (diff)
Make strtod() inline definition C89 compliant.
Diffstat (limited to 'winsup/mingw')
-rw-r--r--winsup/mingw/ChangeLog9
-rw-r--r--winsup/mingw/include/stdlib.h7
2 files changed, 14 insertions, 2 deletions
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 <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 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