Kaynağa Gözat

(<limits.h>): Include if HAVE_LIMITS_H.
(CHAR_BIT): Define if not defined.

Paul Eggert 24 yıl önce
ebeveyn
işleme
8caec82653
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      lib/human.h

+ 7 - 0
lib/human.h

@@ -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.  */