This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: implement printf("%a")
On 11 May 2007 21:10, Eric Blake wrote:
> I did mean to ask, however, why in vfscanf.c and vfprintf.c, _NO_LONGLONG is
> dependent on using gcc, since long long is now a standardized feature of C99
> and is essential for full C99 compliance of printf, and since most non-gnu
> C89 compilers also support it these days. Should I just change
>
> #define _NO_LONGLONG
> #if defined _WANT_IO_LONG_LONG && defined __GNUC__
> # undef _NO_LONGLONG
> #endif
>
> to this?
>
> #define _NO_LONGLONG
> #if defined _WANT_IO_LONG_LONG
> # undef _NO_LONGLONG
> #endif
Or
#define _NO_LONGLONG
#if defined _WANT_IO_LONG_LONG && (__STDC_VERSION__ >= 199901L)
# undef _NO_LONGLONG
#endif
?
cheers,
DaveK
--
Can't think of a witty .sigline today....