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:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-05-25 02:43:29 +0400
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-05-25 02:43:29 +0400
commit7750cea91f072905f9e863de9115887bae46e1ef (patch)
treebe86adc293c05a040cfca0b3002c1be6d84c3f73 /winsup/mingw
parent7fd4adc4e599d177054e981d6e40ee2943d5123f (diff)
2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/stdlib.h (strtod): Declare as extern to resolve compilation issues. Thanks to cgf for the report.
Diffstat (limited to 'winsup/mingw')
-rw-r--r--winsup/mingw/ChangeLog6
-rw-r--r--winsup/mingw/include/stdlib.h7
2 files changed, 8 insertions, 5 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 7ae68fdca..083981c6f 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
+
+ * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
+
+ Thanks to cgf for the report.
+
2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/time.h (daylight, timezone, tzname): Rework guards to expose when
diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h
index 84bd23da2..4df18aab3 100644
--- a/winsup/mingw/include/stdlib.h
+++ b/winsup/mingw/include/stdlib.h
@@ -310,11 +310,8 @@ _CRTIMP long __cdecl __MINGW_NOTHROW _wtol (const wchar_t *);
#endif
#if !defined __NO_ISOCEXT /* in libmingwex.a */
double __cdecl __MINGW_NOTHROW __strtod (const char*, char**);
-__inline__ double __cdecl __MINGW_NOTHROW
-strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr)
-{
- return __strtod(__nptr, __endptr);
-}
+extern double __cdecl __MINGW_NOTHROW
+strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr);
float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char ** __restrict__);
long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__, char ** __restrict__);
#else