]> Dogcows Code - chaz/tar/commitdiff
(<limits.h>): Include if HAVE_LIMITS_H.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Oct 2000 17:20:55 +0000 (17:20 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Oct 2000 17:20:55 +0000 (17:20 +0000)
(CHAR_BIT): Define if not defined.

lib/human.h

index 4ec9f0da8602f1620291b58828ca712f2527aec0..1bff760d93f6f3522a5abc90b29db8119242df45 100644 (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.  */
This page took 0.024292 seconds and 4 git commands to generate.