aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-03-13 09:42:52 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-03-13 09:42:52 +0000
commit6f637037e59f2b0084471802acefa97ceb7f4d5b (patch)
tree313c644aaef27c78a1c95433d905630b550aab34 /newlib
parent344ce60cfbf01aa0e5968a91f4b14c389b650724 (diff)
downloadnewlib-6f637037e59f2b0084471802acefa97ceb7f4d5b.zip
newlib-6f637037e59f2b0084471802acefa97ceb7f4d5b.tar.gz
newlib-6f637037e59f2b0084471802acefa97ceb7f4d5b.tar.bz2
* libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
equivalent to LONGINT.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/stdio/vfprintf.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 99ee8f0..7b56b5b 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-13 Alexandre Oliva <aoliva@redhat.com>
+
+ * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
+ equivalent to LONGINT.
+
2001-03-08 Richard Sandiford <rsandifo@redhat.com>
* (libc/include/machine/setjmp.h): Use 23 long long ints for a
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index ab8202f..9a2cf4f 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -279,7 +279,13 @@ static int exponent _PARAMS((char *, int, int));
#define LADJUST 0x004 /* left adjustment */
#define LONGDBL 0x008 /* long double */
#define LONGINT 0x010 /* long integer */
+#ifndef _NO_LONGLONG
#define QUADINT 0x020 /* quad integer */
+#else /* ifdef _NO_LONGLONG, make QUADINT equivalent to LONGINT, so
+ that %lld behaves the same as %ld, not as %d, as expected if:
+ sizeof (long long) = sizeof long > sizeof int */
+#define QUADINT LONGINT
+#endif
#define SHORTINT 0x040 /* short integer */
#define ZEROPAD 0x080 /* zero (as opposed to blank) pad */
#define FPT 0x100 /* Floating point number */