enable long long and long double support in printf/scanf

Artem B. Bityuckiy abityuckiy@yandex.ru
Wed May 12 13:40:00 GMT 2004


Hello.

Here is the patch that:

1. Adds --enable-newlib-io-long-long and --enable-newlib-io-long-double 
configure script options to allow users to enable long long and long 
double types support in printf/scanf series functions.
2. Removes direct passing -DWANT_PRINTF_LONG_LONG and -DWANT_IO_LONG_DBL 
command line arguments when compiling Newlib (see configure.host).
3. Adds new _WANT_IO_LONG_LONG and _WANT_IO_LONG_DOUBLE macros to newlib.hin
4. Uses new _WANT_IO_LONG_LONG and _WANT_IO_LONG_DOUBLE macros from 
newlib.h instead of old WANT_PRINTF_LONG_LONG and WANT_IO_LONG_DBL macros.

Also, there are 2 small changes:
1. Include <reent.h> in powerpc's printf/scanf
2. Remove junk newlib_cflags=${newlib_cflags} from configure.host

Note: aclocal.m4 and configure form newlib/ directory should be regenerated.

Please, see and commit if consider necessary.

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib-config.diff
URL: <http://sourceware.org/pipermail/newlib/attachments/20040512/540448bc/attachment.ksh>


More information about the Newlib mailing list