diff options
Diffstat (limited to 'newlib/libc/stdio/vfprintf.c')
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 057a2a317..e63a7d886 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -169,17 +169,13 @@ static char *rcsid = "$Id$"; #endif #endif -#define _NO_LONGLONG -#if defined WANT_PRINTF_LONG_LONG && defined __GNUC__ -# undef _NO_LONGLONG -#endif - #define _NO_POS_ARGS -#if defined WANT_IO_POS_ARGS +#if defined _WANT_IO_POS_ARGS # undef _NO_POS_ARGS #endif #include <_ansi.h> +#include <reent.h> #include <newlib.h> #include <reent.h> #include <stdio.h> @@ -202,10 +198,15 @@ static char *rcsid = "$Id$"; This could be changed in the future should the _ldtoa_r code be preferred over _dtoa_r. */ #define _NO_LONGDBL -#if defined WANT_IO_LONG_DBL && (LDBL_MANT_DIG > DBL_MANT_DIG) +#if defined _WANT_IO_LONG_DOUBLE && (LDBL_MANT_DIG > DBL_MANT_DIG) #undef _NO_LONGDBL #endif +#define _NO_LONGLONG +#if defined _WANT_IO_LONG_LONG && defined __GNUC__ +# undef _NO_LONGLONG +#endif + /* * Flush out all the vectors defined by the given uio, * then reset it so that it can be reused. |