From 6b58abe53735c555c611db08656f7ca3aff91823 Mon Sep 17 00:00:00 2001 From: Chris Sutcliffe Date: Mon, 23 May 2011 03:43:30 +0000 Subject: [PATCH] 2011-05-22 Chris Sutcliffe * include/stdlib.h (strtod): Remove possible static declaration to resolve issue with gcc. Thanks to Tobias Burnus for the report. --- winsup/mingw/ChangeLog | 7 +++++++ winsup/mingw/include/stdlib.h | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 2b3dab4bd..3df7dc2c5 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,10 @@ +2011-05-22 Chris Sutcliffe + + * include/stdlib.h (strtod): Remove possible static declaration to resolve + issue with gcc. + + Thanks to Tobias Burnus for the report. + 2011-05-22 Chris Sutcliffe * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h index 43326f412..84bd23da2 100644 --- a/winsup/mingw/include/stdlib.h +++ b/winsup/mingw/include/stdlib.h @@ -310,11 +310,6 @@ _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**); -#ifdef __cplusplus -/* We require a function with external linkage. */ -#else -static -#endif /* Not __cplusplus */ __inline__ double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr) {