]> Savannah Git Hosting - gnulib.git/commitdiff
xstrtol: Trim dependencies.
authorBruno Haible <bruno@clisp.org>
Mon, 17 Jan 2022 10:07:25 +0000 (11:07 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 17 Jan 2022 10:07:25 +0000 (11:07 +0100)
* lib/xstrtol.h: Include <stdint.h>, not <inttypes.h>.
* modules/xstrtol (Depends-on): Add stdint. Remove inttypes-incomplete.

ChangeLog
lib/xstrtol.h
modules/xstrtol

index 83f8550e81a4c03abde8a9959dbec6a79f332f2e..33944f44b806d225e3cf644fd18c25755075ddee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-01-17  Bruno Haible  <bruno@clisp.org>
+
+       xstrtol: Trim dependencies.
+       * lib/xstrtol.h: Include <stdint.h>, not <inttypes.h>.
+       * modules/xstrtol (Depends-on): Add stdint. Remove inttypes-incomplete.
+
 2022-01-17  Bruno Haible  <bruno@clisp.org>
 
        xstrtol: Fix compilation error (regression 2022-01-16).
index e3fe387790a00888cb6c338a39b5189c5ba74fa3..a0159a772ab9adf83f16046bbb1bd009364d66e9 100644 (file)
@@ -19,7 +19,8 @@
 #ifndef XSTRTOL_H_
 # define XSTRTOL_H_ 1
 
-# include <inttypes.h>
+/* Get intmax_t, uintmax_t.  */
+# include <stdint.h>
 
 # ifndef _STRTOL_ERROR
 enum strtol_error
index d171890f3dae8d171687a3384a1599a26c6e2840..137cc1f5abc14f87f911b156079b3adc01a21747 100644 (file)
@@ -10,7 +10,7 @@ m4/xstrtol.m4
 Depends-on:
 assure
 intprops
-inttypes-incomplete
+stdint
 
 configure.ac:
 gl_XSTRTOL