aboutsummaryrefslogtreecommitdiff
path: root/newlib/newlib.hin
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2007-05-11 20:09:00 +0000
committerEric Blake <eblake@redhat.com>2007-05-11 20:09:00 +0000
commit0962fe9178a40c8410d5f1497bb1966f0db66d6d (patch)
tree96b95530f13f58319534a60386c6c523d97a9e6a /newlib/newlib.hin
parentb8a37af936acca73d6f6814d89d422b34e342790 (diff)
downloadnewlib-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.hin4
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