[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xstrtol: Trim dependencies
From: |
Bruno Haible |
Subject: |
xstrtol: Trim dependencies |
Date: |
Mon, 17 Jan 2022 11:11:02 +0100 |
The module 'xstrtol' does not use any PRI*, SCN* constants.
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.
diff --git a/lib/xstrtol.h b/lib/xstrtol.h
index e3fe387790..a0159a772a 100644
--- a/lib/xstrtol.h
+++ b/lib/xstrtol.h
@@ -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
diff --git a/modules/xstrtol b/modules/xstrtol
index d171890f3d..137cc1f5ab 100644
--- a/modules/xstrtol
+++ b/modules/xstrtol
@@ -10,7 +10,7 @@ m4/xstrtol.m4
Depends-on:
assure
intprops
-inttypes-incomplete
+stdint
configure.ac:
gl_XSTRTOL
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- xstrtol: Trim dependencies,
Bruno Haible <=