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/6404ed38996f
branches:  trunk
changeset: 325438:6404ed38996f
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 098027e5a298 -r 6404ed38996f 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