From: Paul Eggert Date: Thu, 2 Dec 2004 06:52:10 +0000 (+0000) Subject: Assume exists. X-Git-Tag: v5.3.0~243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08da1bb43939bec84627f63b30ab63632c7f8c7f;p=thirdparty%2Fcoreutils.git Assume exists. (human_readable): Assume localeconv exists. --- diff --git a/lib/human.c b/lib/human.c index 4960876dd4..295e6de3c1 100644 --- a/lib/human.c +++ b/lib/human.c @@ -32,10 +32,7 @@ # define UINTMAX_MAX ((uintmax_t) -1) #endif -#if HAVE_LOCALE_H && HAVE_LOCALECONV -# include -#endif - +#include #include #include #include @@ -193,7 +190,6 @@ human_readable (uintmax_t n, char *buf, int opts, size_t decimal_pointlen = 1; char const *grouping = ""; char const *thousands_sep = ""; -#if HAVE_LOCALE_H && HAVE_LOCALECONV struct lconv const *l = localeconv (); size_t pointlen = strlen (l->decimal_point); if (0 < pointlen && pointlen <= MB_LEN_MAX) @@ -204,7 +200,6 @@ human_readable (uintmax_t n, char *buf, int opts, grouping = l->grouping; if (strlen (l->thousands_sep) <= MB_LEN_MAX) thousands_sep = l->thousands_sep; -#endif psuffix = buf + LONGEST_HUMAN_READABLE - HUMAN_READABLE_SUFFIX_LENGTH_MAX; p = psuffix;