pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files * Rename HAVE_QUAD_SUPPORT ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/17613c3cd2f1
branches:  trunk
changeset: 465038:17613c3cd2f1
user:      grant <grant%pkgsrc.org@localhost>
date:      Fri Dec 19 22:45:14 2003 +0000

description:
* Rename HAVE_QUAD_SUPPORT to the more mnemonic HAVE_WORKING_LONG_LONG.
* Don't bother providing compat defs for QUAD_{MIN,MAX} since
  they're not used anymore.

diffstat:

 pkgtools/libnbcompat/files/configure.ac |   6 +++---
 pkgtools/libnbcompat/files/nbcompat.h   |  26 +++++++++++++++++---------
 2 files changed, 20 insertions(+), 12 deletions(-)

diffs (65 lines):

diff -r f1ada30e4743 -r 17613c3cd2f1 pkgtools/libnbcompat/files/configure.ac
--- a/pkgtools/libnbcompat/files/configure.ac   Fri Dec 19 22:40:04 2003 +0000
+++ b/pkgtools/libnbcompat/files/configure.ac   Fri Dec 19 22:45:14 2003 +0000
@@ -1,4 +1,4 @@
-dnl $NetBSD: configure.ac,v 1.33 2003/12/10 07:21:20 grant Exp $
+dnl $NetBSD: configure.ac,v 1.34 2003/12/19 22:45:14 grant Exp $
 
 dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.52)
@@ -261,8 +261,8 @@
        fi
 
        if test $can_printf_longlong = yes; then
-               AC_DEFINE(HAVE_QUAD_SUPPORT, 1)
-               AH_TEMPLATE([HAVE_QUAD_SUPPORT], [
+               AC_DEFINE(HAVE_WORKING_LONG_LONG, 1)
+               AH_TEMPLATE([HAVE_WORKING_LONG_LONG], [
                        Define to 1 if `long long' is supported and
                        sizeof(off_t) >= 8.
                ])
diff -r f1ada30e4743 -r 17613c3cd2f1 pkgtools/libnbcompat/files/nbcompat.h
--- a/pkgtools/libnbcompat/files/nbcompat.h     Fri Dec 19 22:40:04 2003 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat.h     Fri Dec 19 22:45:14 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nbcompat.h,v 1.29 2003/12/10 07:21:20 grant Exp $      */
+/*     $NetBSD: nbcompat.h,v 1.30 2003/12/19 22:45:14 grant Exp $      */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -469,19 +469,27 @@
 char   *strptime(const char *, const char *, struct tm *);
 #endif
 
-#if HAVE_QUAD_SUPPORT
+#if HAVE_WORKING_LONG_LONG
 # if !defined(HAVE_STRTOLL) && defined(HAVE_LONG_LONG)
 long long strtoll(const char *, char **, int);
-#  if ! defined(QUAD_MIN)
-#   define QUAD_MIN    (-0x7fffffffffffffffL-1)
-#  endif
-#  if ! defined(QUAD_MAX)
-#   define QUAD_MAX    (0x7fffffffffffffffL)
+# endif
+# if ! defined(LLONG_MAX)
+#  if defined(LONG_LONG_MAX)
+#   define LLONG_MAX   LONG_LONG_MAX
+#  else
+#   define LLONG_MAX   (0x7fffffffffffffffL)
 #  endif
 # endif
-#else  /* ! HAVE_QUAD_SUPPORT */
+# if ! defined(LLONG_MIN)
+#  if defined(LONG_LONG_MIN)
+#   define LLONG_MIN   LONG_LONG_MIN
+#  else
+#   define LLONG_MIN   (-0x7fffffffffffffffL-1)
+#  endif
+# endif
+#else  /* ! HAVE_WORKING_LONG_LONG */
 # define NO_LONG_LONG  1
-#endif /* ! HAVE_QUAD_SUPPORT */
+#endif /* ! HAVE_WORKING_LONG_LONG */
 
 #if ! defined(LLONG_MAX)
 # define LLONG_MAX     0x7fffffffffffffffLL    /* max long long */



Home | Main Index | Thread Index | Old Index