]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
xstrtoll: Assume that the compiler supports 'long long'.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Dec 2019 08:57:17 +0000 (09:57 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Dec 2019 08:57:17 +0000 (09:57 +0100)
* lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
* modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.

ChangeLog
lib/xstrtol.h
modules/xstrtoll

index bf96d6c5c24168c3d4b27dec3d2620974d6ee547..e29518633260a17b90be9e03cf95b6d1b287a8e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2019-12-22  Bruno Haible  <bruno@clisp.org>
 
+       xstrtoll: Assume that the compiler supports 'long long'.
+       * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
+       * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
+
        vasnprintf: Assume that the compiler supports 'long long'.
        * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
        * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
index d888120e6bae47f0c833dfebd70bc13ec4ce84bc..ea92f1b7156a08f9323ca8cb4bcff1a87286586d 100644 (file)
@@ -42,12 +42,9 @@ typedef enum strtol_error strtol_error;
   strtol_error name (const char *, char **, int, type *, const char *);
 _DECLARE_XSTRTOL (xstrtol, long int)
 _DECLARE_XSTRTOL (xstrtoul, unsigned long int)
-_DECLARE_XSTRTOL (xstrtoimax, intmax_t)
-_DECLARE_XSTRTOL (xstrtoumax, uintmax_t)
-
-#if HAVE_LONG_LONG_INT
 _DECLARE_XSTRTOL (xstrtoll, long long int)
 _DECLARE_XSTRTOL (xstrtoull, unsigned long long int)
-#endif
+_DECLARE_XSTRTOL (xstrtoimax, intmax_t)
+_DECLARE_XSTRTOL (xstrtoumax, uintmax_t)
 
 #endif /* not XSTRTOL_H_ */
index ee5fa8efcf142b7ea04d347d5da32727b4625b74..ccff7f1acc5262e4f3610241a7e53f2f7a959b62 100644 (file)
@@ -14,10 +14,6 @@ xstrtol
 configure.ac:
 AC_LIBOBJ([xstrtoll])
 AC_LIBOBJ([xstrtoull])
-AC_TYPE_LONG_LONG_INT
-test $ac_cv_type_long_long_int = no \
-  && AC_MSG_ERROR(
-      [you lack long long support; required by gnulib's xstrtoll module])
 
 Makefile.am: