Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-03-13 12:42:52 +0300
committerAlexandre Oliva <aoliva@redhat.com>2001-03-13 12:42:52 +0300
commit6f637037e59f2b0084471802acefa97ceb7f4d5b (patch)
tree313c644aaef27c78a1c95433d905630b550aab34 /newlib/libc/stdio
parent344ce60cfbf01aa0e5968a91f4b14c389b650724 (diff)
* libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
equivalent to LONGINT.
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r--newlib/libc/stdio/vfprintf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index ab8202fc0..9a2cf4fb6 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 */