summaryrefslogtreecommitdiffstats
path: root/newlib/acconfig.h
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/acconfig.h
parentb8a37af936acca73d6f6814d89d422b34e342790 (diff)
downloadcygnal-0962fe9178a40c8410d5f1497bb1966f0db66d6d.tar.gz
cygnal-0962fe9178a40c8410d5f1497bb1966f0db66d6d.tar.bz2
cygnal-0962fe9178a40c8410d5f1497bb1966f0db66d6d.zip
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/acconfig.h')
-rw-r--r--newlib/acconfig.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/newlib/acconfig.h b/newlib/acconfig.h
index d8b7dc774..2a138414c 100644
--- a/newlib/acconfig.h
+++ b/newlib/acconfig.h
@@ -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
@@ -154,4 +158,3 @@
#undef _ICONV_FROM_ENCODING_WIN_1258
#endif /* !__NEWLIB_H__ */
-