From: <ped...@us...> - 2010-01-02 00:53:16
|
Revision: 1428 http://cegcc.svn.sourceforge.net/cegcc/?rev=1428&view=rev Author: pedroalves Date: 2010-01-02 00:53:05 +0000 (Sat, 02 Jan 2010) Log Message: ----------- * include/stdlib.h (atoll): Don't define the inline version with __NO_INLINE__ is defined. Don't define or declare if __STRICT_ANSI__ is defined, unless compiling for C99 or above. Add missing declaration for out-of-line copy. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdlib.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-01 23:47:59 UTC (rev 1427) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2010-01-02 00:53:05 UTC (rev 1428) @@ -1,3 +1,10 @@ +2010-01-02 Pedro Alves <ped...@us...> + + * include/stdlib.h (atoll): Don't define the inline version with + __NO_INLINE__ is defined. Don't define or declare if + __STRICT_ANSI__ is defined, unless compiling for C99 or above. + Add missing declaration for out-of-line copy. + 2010-01-01 Pedro Alves <ped...@us...> * mingwex/wince/freopen.c, mingwex/wince/unlink.c, Modified: trunk/cegcc/src/mingw/include/stdlib.h =================================================================== --- trunk/cegcc/src/mingw/include/stdlib.h 2010-01-01 23:47:59 UTC (rev 1427) +++ trunk/cegcc/src/mingw/include/stdlib.h 2010-01-02 00:53:05 UTC (rev 1428) @@ -562,13 +562,27 @@ {return (_j >= 0 ? _j : -_j);} #endif -/* C99 addition, this used to be blocked by __STRICT_ANSI__ (see below). */ +#ifndef __NO_INLINE__ +#if (!defined (__STRICT_ANSI__) \ + || (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)) __CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c) { return _atoi64 (_c); } +#endif +#endif long long __cdecl __MINGW_NOTHROW strtoll (const char* __restrict__, char** __restrict, int); unsigned long long __cdecl __MINGW_NOTHROW strtoull (const char* __restrict__, char** __restrict__, int); +/* these are stubs for MS _i64 versions */ +#if defined (__MSVCRT__) || defined (__COREDLL__) + +#if (!defined (__STRICT_ANSI__) \ + || (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)) +long long __cdecl __MINGW_NOTHROW atoll (const char * _c); +#endif + +#endif + #if defined (__MSVCRT__) /* these are stubs for MS _i64 versions */ #if !defined (__STRICT_ANSI__) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |