From: SourceForge.net <no...@so...> - 2008-07-04 21:30:23
|
Patches item #2010966, was opened at 2008-07-05 09:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302435&aid=2010966&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Danny Smith (dannysmith) Assigned to: Nobody/Anonymous (nobody) Summary: Fix stdlib.h:strtod() definition for C89 Initial Comment: With current CVS, the use of 'inline' function to define strtod() in stdlib.h causes failure with -ansi or -std=c89 > gcc -c -x c -ansi stdlib.h C:\develop\cvs\winsup\src\winsup\mingw\include>gcc -c -x c -ansi stdlib.h stdlib.h:318: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'double' 'inline' is not a keyword in c89. This fixes by replacing with gnu extension __inline__ OK to commit? Danny * include.stdlib.h (strtod) [!__cplusplus]: Replace 'inline' with '__inline__' Index: include/stdlib.h =================================================================== RCS file: /cvs/src/src/winsup/mingw/include/stdlib.h,v retrieving revision 1.35 diff -r1.35 stdlib.h 313a314 > inline 315c316 < static --- > static __inline__ 317c318,319 < inline double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr) --- > double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, > char** __restrict__ __endptr) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302435&aid=2010966&group_id=2435 |