OSDN Git Service

Make strtod() inline definition C89 compliant.
authorkeithmarshall <keithmarshall>
Sat, 11 Oct 2008 21:47:55 +0000 (21:47 +0000)
committerkeithmarshall <keithmarshall>
Sat, 11 Oct 2008 21:47:55 +0000 (21:47 +0000)
winsup/mingw/ChangeLog
winsup/mingw/include/stdlib.h

index a39cfe9..29083b6 100644 (file)
@@ -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
index 7af2b83..b586430 100644 (file)
@@ -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