]> Savannah Git Hosting - gnulib.git/commitdiff
xstrtoll: Rely on limits-h module.
authorBruno Haible <bruno@clisp.org>
Thu, 6 Sep 2018 12:46:06 +0000 (14:46 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Sep 2018 12:46:06 +0000 (14:46 +0200)
* lib/xstrtol.c: Don't include intprops.h.
(ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
* modules/xstrtol (Depends-on): Remove 'intprops'.
* modules/xstrtoll (Depends-on): Add 'limits-h'.

ChangeLog
lib/xstrtol.c
modules/xstrtol
modules/xstrtoll

index 4116600e5ee411125e5f0660f2816b0978b41f70..6eb30276dfd960716728835be94e905227396e5f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-09-06  Bruno Haible  <bruno@clisp.org>
+
+       xstrtoll: Rely on limits-h module.
+       * lib/xstrtol.c: Don't include intprops.h.
+       (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
+       * modules/xstrtol (Depends-on): Remove 'intprops'.
+       * modules/xstrtoll (Depends-on): Add 'limits-h'.
+
 2018-09-06  Bruno Haible  <bruno@clisp.org>
 
        strtoll, strtoull: Rely on limits-h module.
index d8b4edb8a97e1dd00969e9f17b698c4a3e1864f5..1332e3fc2540fb2cd26101820ec28bd241f47e46 100644 (file)
 #include <string.h>
 
 #include "assure.h"
-#include "intprops.h"
-
-/* xstrtoll.c and xstrtoull.c, which include this file, require that
-   ULLONG_MAX, LLONG_MAX, LLONG_MIN are defined, but <limits.h> does not
-   define them on all platforms.  */
-#ifndef ULLONG_MAX
-# define ULLONG_MAX TYPE_MAXIMUM (unsigned long long)
-#endif
-#ifndef LLONG_MAX
-# define LLONG_MAX TYPE_MAXIMUM (long long int)
-#endif
-#ifndef LLONG_MIN
-# define LLONG_MIN TYPE_MINIMUM (long long int)
-#endif
 
 static strtol_error
 bkm_scale (__strtol_t *x, int scale_factor)
index 9c89aef089682dce1b3e518987d52023e4fda367..26240ecc994fd845a066dfc3729db48bade6e655 100644 (file)
@@ -14,7 +14,6 @@ exitfail
 error
 getopt-gnu
 gettext-h
-intprops
 inttypes-incomplete
 
 configure.ac:
index a5da21148dd32d478c550704e968637ced8dd623..ee5fa8efcf142b7ea04d347d5da32727b4625b74 100644 (file)
@@ -6,6 +6,7 @@ lib/xstrtoll.c
 lib/xstrtoull.c
 
 Depends-on:
+limits-h
 strtoll
 strtoull
 xstrtol