pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files define the maximum values f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3c9d9474b841
branches:  trunk
changeset: 461317:3c9d9474b841
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Sep 14 05:35:57 2003 +0000

description:
define the maximum values for `long long' (LLONG_MAX) and
`unsigned long long' (ULLONG_MAX) if we don't have them.

as seen on (a) Linux.

diffstat:

 pkgtools/libnbcompat/files/nbcompat.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 34051e4407c5 -r 3c9d9474b841 pkgtools/libnbcompat/files/nbcompat.h
--- a/pkgtools/libnbcompat/files/nbcompat.h     Sun Sep 14 05:35:04 2003 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat.h     Sun Sep 14 05:35:57 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nbcompat.h,v 1.20 2003/09/11 11:27:38 grant Exp $      */
+/*     $NetBSD: nbcompat.h,v 1.21 2003/09/14 05:35:57 grant Exp $      */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -471,6 +471,14 @@
 # define NO_LONG_LONG  1
 #endif /* ! HAVE_QUAD_SUPPORT */
 
+#if !LLONG_MAX
+# define LLONG_MAX     0x7fffffffffffffffLL    /* max long long */
+#endif
+
+#if !ULLONG_MAX
+# define ULLONG_MAX    0xffffffffffffffffULL   /* max unsigned long long */
+#endif
+
 #if !HAVE_TIMEGM
 time_t timegm(struct tm *);
 #endif



Home | Main Index | Thread Index | Old Index