1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

xstrtoimax, xstrtoumax: depend on inttypes-incomplete

This fixes a call to strtoimax without declaring it,
and similarly for strtoumax.
* lib/xstrtoimax.c, lib/xstrtoumax.c (XSTRTOL_INCLUDE_INTTYPES_H):
Define, so that strtoimax and strtoumax are declared.
* lib/xstrtol.c [XSTRTOL_INCLUDE_INTTYPES_H]: Include inttypes.h.
* modules/xstrtoimax, modules/xstrtoumax (Depends-on):
Add inttypes-incomplete.
This commit is contained in:
Paul Eggert
2022-01-23 21:07:39 -08:00
parent a319a3a16e
commit 8ecf07a951
6 changed files with 17 additions and 0 deletions
+9
View File
@@ -1,5 +1,14 @@
2022-01-23 Paul Eggert <eggert@cs.ucla.edu>
xstrtoimax, xstrtoumax: depend on inttypes-incomplete
This fixes a call to strtoimax without declaring it,
and similarly for strtoumax.
* lib/xstrtoimax.c, lib/xstrtoumax.c (XSTRTOL_INCLUDE_INTTYPES_H):
Define, so that strtoimax and strtoumax are declared.
* lib/xstrtol.c [XSTRTOL_INCLUDE_INTTYPES_H]: Include inttypes.h.
* modules/xstrtoimax, modules/xstrtoumax (Depends-on):
Add inttypes-incomplete.
alignalloc, xalignalloc: new modules
* lib/alignalloc.c, lib/alignalloc.h, lib/xalignalloc.c:
* m4/alignalloc.m4, modules/alignalloc, modules/alignalloc-tests:
+1
View File
@@ -20,4 +20,5 @@
#define __xstrtol xstrtoimax
#define STRTOL_T_MINIMUM INTMAX_MIN
#define STRTOL_T_MAXIMUM INTMAX_MAX
#define XSTRTOL_INCLUDE_INTTYPES_H 1
#include "xstrtol.c"
+4
View File
@@ -40,6 +40,10 @@
#include <stdlib.h>
#include <string.h>
#if XSTRTOL_INCLUDE_INTTYPES_H
# include <inttypes.h>
#endif
#include "assure.h"
#include "intprops.h"
+1
View File
@@ -20,4 +20,5 @@
#define __xstrtol xstrtoumax
#define STRTOL_T_MINIMUM 0
#define STRTOL_T_MAXIMUM UINTMAX_MAX
#define XSTRTOL_INCLUDE_INTTYPES_H 1
#include "xstrtol.c"
+1
View File
@@ -6,6 +6,7 @@ lib/xstrtoimax.c
Depends-on:
xstrtol
inttypes-incomplete
strtoimax
configure.ac:
+1
View File
@@ -6,6 +6,7 @@ lib/xstrtoumax.c
Depends-on:
xstrtol
inttypes-incomplete
strtoumax
configure.ac: