diff options
author | Eric Blake <eblake@redhat.com> | 2007-05-18 14:33:30 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2007-05-18 14:33:30 +0000 |
commit | 8aab2bc260f2429bbe71bb366e2d39e573864098 (patch) | |
tree | 24cea9639a0f2db17a91a0b61357886d250ea678 /newlib/libc | |
parent | b2250c70bd107d5553d3f5e8d756092f2589ad65 (diff) | |
download | newlib-8aab2bc260f2429bbe71bb366e2d39e573864098.zip newlib-8aab2bc260f2429bbe71bb366e2d39e573864098.tar.gz newlib-8aab2bc260f2429bbe71bb366e2d39e573864098.tar.bz2 |
* libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
compilers.
* libc/stdio/vfscanf.c: Likewise.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 3 | ||||
-rw-r--r-- | newlib/libc/stdio/vfscanf.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 5305840..72bd7e8 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 9a7745e..bd597b3 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 |