From 8aab2bc260f2429bbe71bb366e2d39e573864098 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 18 May 2007 14:33:30 +0000 Subject: [PATCH] * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc compilers. * libc/stdio/vfscanf.c: Likewise. --- newlib/ChangeLog | 8 +++++++- newlib/libc/stdio/vfprintf.c | 3 ++- newlib/libc/stdio/vfscanf.c | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index d2ed17ffe..262ef89c7 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,10 +1,16 @@ +2007-05-18 Eric Blake + + * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc + compilers. + * libc/stdio/vfscanf.c: Likewise. + 2007-05-17 Cary R. yahoo.com> * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0)) * libm/math/wf_atan2.c: Ditto. -2007-05-17 Yaakov Selkowitz users.sourceforge.net> +2007-05-17 Yaakov Selkowitz users.sourceforge.net> * libm/common/Makefile.am: Add support for exp10, exp10f, pow10, and pow10f functions. diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 5305840bb..72bd7e89e 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -153,7 +153,8 @@ static char *rcsid = "$Id$"; #endif #define _NO_LONGLONG -#if defined _WANT_IO_LONG_LONG && defined __GNUC__ +#if defined _WANT_IO_LONG_LONG \ + && (defined __GNUC__ || __STDC_VERSION__ >= 199901L) # undef _NO_LONGLONG #endif diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index 9a7745e1a..bd597b395 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -164,7 +164,8 @@ extern _LONG_DOUBLE _strtold _PARAMS((char *s, char **sptr)); #endif #define _NO_LONGLONG -#if defined _WANT_IO_LONG_LONG && defined __GNUC__ +#if defined _WANT_IO_LONG_LONG \ + && (defined __GNUC__ || __STDC_VERSION__ >= 199901L) # undef _NO_LONGLONG #endif