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:
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -6,6 +6,7 @@ lib/xstrtoimax.c
|
||||
|
||||
Depends-on:
|
||||
xstrtol
|
||||
inttypes-incomplete
|
||||
strtoimax
|
||||
|
||||
configure.ac:
|
||||
|
||||
@@ -6,6 +6,7 @@ lib/xstrtoumax.c
|
||||
|
||||
Depends-on:
|
||||
xstrtol
|
||||
inttypes-incomplete
|
||||
strtoumax
|
||||
|
||||
configure.ac:
|
||||
|
||||
Reference in New Issue
Block a user