(<limits.h>): Include if HAVE_LIMITS_H.

(CHAR_BIT): Define if not defined.
This commit is contained in:
Paul Eggert
2000-10-17 17:20:55 +00:00
parent 9d290bf45e
commit 8caec82653

View File

@@ -9,6 +9,13 @@
# include <inttypes.h>
# endif
# if HAVE_LIMITS_H
# include <limits.h>
# endif
# ifndef CHAR_BIT
# define CHAR_BIT 8
# endif
/* A conservative bound on the maximum length of a human-readable string.
The output can be the product of the largest uintmax_t and the largest int,
so add their sizes before converting to a bound on digits. */