diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/machine/powerpc/vfprintf.c | 12 | ||||
-rw-r--r-- | newlib/libc/machine/powerpc/vfscanf.c | 5 | ||||
-rw-r--r-- | newlib/libc/stdio/vfieeefp.h | 5 | ||||
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 15 | ||||
-rw-r--r-- | newlib/libc/stdio/vfscanf.c | 6 |
5 files changed, 23 insertions, 20 deletions
diff --git a/newlib/libc/machine/powerpc/vfprintf.c b/newlib/libc/machine/powerpc/vfprintf.c index ff3a4f66b..aac5fb2fb 100644 --- a/newlib/libc/machine/powerpc/vfprintf.c +++ b/newlib/libc/machine/powerpc/vfprintf.c @@ -155,11 +155,6 @@ static char *rcsid = "$Id$"; #endif #endif -#define _NO_LONGLONG -#if defined WANT_PRINTF_LONG_LONG && defined __GNUC__ -# undef _NO_LONGLONG -#endif - #include <_ansi.h> #include <limits.h> #include <stdio.h> @@ -186,10 +181,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 + #ifdef __ALTIVEC__ typedef union { diff --git a/newlib/libc/machine/powerpc/vfscanf.c b/newlib/libc/machine/powerpc/vfscanf.c index dfbde8bd6..c0d48a886 100644 --- a/newlib/libc/machine/powerpc/vfscanf.c +++ b/newlib/libc/machine/powerpc/vfscanf.c @@ -103,6 +103,7 @@ Supporting OS subroutines required: */ #include <_ansi.h> +#include <reent.h> #include <newlib.h> #include <ctype.h> #include <stdio.h> @@ -128,13 +129,13 @@ Supporting OS subroutines required: 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 extern _LONG_DOUBLE _strtold _PARAMS((char *s, char **sptr)); #endif #define _NO_LONGLONG -#if defined WANT_PRINTF_LONG_LONG && defined __GNUC__ +#if defined _WANT_IO_LONG_LONG && defined __GNUC__ # undef _NO_LONGLONG #endif diff --git a/newlib/libc/stdio/vfieeefp.h b/newlib/libc/stdio/vfieeefp.h index 1b240fcde..3691ffe73 100644 --- a/newlib/libc/stdio/vfieeefp.h +++ b/newlib/libc/stdio/vfieeefp.h @@ -29,6 +29,7 @@ /* This header file is a modification of mprec.h that only contains floating point union code. */ +#include <newlib.h> #include <ieeefp.h> #include <math.h> #include <float.h> @@ -57,7 +58,7 @@ Exactly one of IEEE_8087, IEEE_MC68k, VAX, or IBM should be defined. #endif -#ifdef WANT_IO_LONG_DBL +#ifdef _WANT_IO_LONG_DOUBLE /* If we are going to examine or modify specific bits in a long double using the lword0 or lwordx macros, then we must wrap the long double inside a union. This is necessary to avoid undefined behavior according to @@ -134,7 +135,7 @@ struct ldieee }; #endif /* LDBL_MANT_DIG */ #endif /* !IEEE_8087 */ -#endif /* WANT_IO_LONG_DBL */ +#endif /* _WANT_IO_LONG_DOUBLE */ /* If we are going to examine or modify specific bits in a double using the word0 and/or word1 macros, then we must wrap the double inside 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. diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index 7f83e16bf..e5bb345ec 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -103,8 +103,8 @@ Supporting OS subroutines required: */ #include <_ansi.h> -#include <newlib.h> #include <reent.h> +#include <newlib.h> #include <ctype.h> #include <wctype.h> #include <stdio.h> @@ -130,13 +130,13 @@ Supporting OS subroutines required: 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 extern _LONG_DOUBLE _strtold _PARAMS((char *s, char **sptr)); #endif #define _NO_LONGLONG -#if defined WANT_PRINTF_LONG_LONG && defined __GNUC__ +#if defined _WANT_IO_LONG_LONG && defined __GNUC__ # undef _NO_LONGLONG #endif |