From: Paul Eggert Date: Tue, 17 Oct 2000 17:20:55 +0000 (+0000) Subject: (): Include if HAVE_LIMITS_H. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8caec8265385834db4805640f48c2316bba932f5;p=chaz%2Ftar (): Include if HAVE_LIMITS_H. (CHAR_BIT): Define if not defined. --- diff --git a/lib/human.h b/lib/human.h index 4ec9f0d..1bff760 100644 --- a/lib/human.h +++ b/lib/human.h @@ -9,6 +9,13 @@ # include # endif +# if HAVE_LIMITS_H +# include +# 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. */