X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2Fhuman.h;h=1bff760d93f6f3522a5abc90b29db8119242df45;hb=78b078b455b834695ebd3104ec3dbe8a4ac9f3a3;hp=4ec9f0da8602f1620291b58828ca712f2527aec0;hpb=cb562d7194b75f7d548235554d5f262109c7e7c0;p=chaz%2Ftar 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. */