mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 11:16:16 +02:00
(PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Define if necessary.
From gettext's intl/loadmsgcat.c.
This commit is contained in:
17
src/sys2.h
17
src/sys2.h
@@ -264,6 +264,23 @@ char *alloca ();
|
|||||||
# include <inttypes.h> /* for the definition of UINTMAX_MAX */
|
# include <inttypes.h> /* for the definition of UINTMAX_MAX */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined PRIdMAX || PRI_MACROS_BROKEN
|
||||||
|
# undef PRIdMAX
|
||||||
|
# define PRIdMAX (sizeof (uintmax_t) == sizeof (long) ? "ld" : "lld")
|
||||||
|
#endif
|
||||||
|
#if !defined PRIoMAX || PRI_MACROS_BROKEN
|
||||||
|
# undef PRIoMAX
|
||||||
|
# define PRIoMAX (sizeof (uintmax_t) == sizeof (long) ? "lo" : "llo")
|
||||||
|
#endif
|
||||||
|
#if !defined PRIuMAX || PRI_MACROS_BROKEN
|
||||||
|
# undef PRIuMAX
|
||||||
|
# define PRIuMAX (sizeof (uintmax_t) == sizeof (long) ? "lu" : "llu")
|
||||||
|
#endif
|
||||||
|
#if !defined PRIxMAX || PRI_MACROS_BROKEN
|
||||||
|
# undef PRIxMAX
|
||||||
|
# define PRIxMAX (sizeof (uintmax_t) == sizeof (long) ? "lx" : "llx")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
/* Jim Meyering writes:
|
/* Jim Meyering writes:
|
||||||
|
|||||||
Reference in New Issue
Block a user