From 08da1bb43939bec84627f63b30ab63632c7f8c7f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 2 Dec 2004 06:52:10 +0000 Subject: [PATCH] Assume exists. (human_readable): Assume localeconv exists. --- lib/human.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; -- 2.47.2