Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa intmax_t might be long long, handle accordingl...



details:   https://anonhg.NetBSD.org/src/rev/f451181d131a
branches:  trunk
changeset: 792178:f451181d131a
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue Dec 24 22:26:21 2013 +0000

description:
intmax_t might be long long, handle accordingly. from christos

diffstat:

 sys/lib/libsa/subr_prf.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 2c0229b67e1f -r f451181d131a sys/lib/libsa/subr_prf.c
--- a/sys/lib/libsa/subr_prf.c  Tue Dec 24 22:14:07 2013 +0000
+++ b/sys/lib/libsa/subr_prf.c  Tue Dec 24 22:26:21 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_prf.c,v 1.22 2013/12/24 21:41:49 jakllsch Exp $   */
+/*     $NetBSD: subr_prf.c,v 1.23 2013/12/24 22:26:21 jakllsch Exp $   */
 
 /*-
  * Copyright (c) 1993
@@ -214,6 +214,11 @@
                                lflag |= LONG;
                        goto reswitch;
                case 'j':
+#ifdef LIBSA_PRINTF_LONGLONG_SUPPORT
+                       if (sizeof(intmax_t) == sizeof(long long))
+                               lflag |= LLONG;
+                       else
+#endif
                        if (sizeof(intmax_t) == sizeof(long))
                                lflag |= LONG;
                        goto reswitch;



Home | Main Index | Thread Index | Old Index