diff options
author | Eric Blake <eblake@redhat.com> | 2007-05-11 20:09:00 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2007-05-11 20:09:00 +0000 |
commit | 0962fe9178a40c8410d5f1497bb1966f0db66d6d (patch) | |
tree | 96b95530f13f58319534a60386c6c523d97a9e6a /newlib/newlib.hin | |
parent | b8a37af936acca73d6f6814d89d422b34e342790 (diff) | |
download | newlib-0962fe9178a40c8410d5f1497bb1966f0db66d6d.zip newlib-0962fe9178a40c8410d5f1497bb1966f0db66d6d.tar.gz newlib-0962fe9178a40c8410d5f1497bb1966f0db66d6d.tar.bz2 |
Minimize printf/scanf size on platforms that don't need C99.
* acconfig.h (_WANT_IO_C99_FORMATS): New macro.
* newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
* configure.in (newlib-io-c99-formats): New configure option.
(_WANT_IO_C99_FORMATS): Define appropriately.
* configure.host (*-linux*, cygwin): Default c99-formats to yes.
* libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
* libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
Likewise.
* configure: Regenerate.
Diffstat (limited to 'newlib/newlib.hin')
-rw-r--r-- | newlib/newlib.hin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/newlib.hin b/newlib/newlib.hin index bb09f99..236c831 100644 --- a/newlib/newlib.hin +++ b/newlib/newlib.hin @@ -9,6 +9,10 @@ /* Newlib version */ #undef _NEWLIB_VERSION +/* C99 formats support (such as %a, %zu, ...) in IO functions like + * printf/scanf enabled */ +#undef _WANT_IO_C99_FORMATS + /* long long type support in IO functions like printf/scanf enabled */ #undef _WANT_IO_LONG_LONG |