* lib/vasnprintf.c (decimal_point_char): Define this function also when only NEED_PRINTF_INFINITE_LONG_DOUBLE is defined. --- Hi Bruno,
Building coreutils without this change, I get link errors like these: .../vasnprintf.c:3185: undefined reference to `decimal_point_char' .../vasnprintf.c:3154: undefined reference to `decimal_point_char' .../vasnprintf.c:3164: undefined reference to `decimal_point_char' That is the only NEED_PRINTF_* symbol defined in config.h: $ grep define.NEED_PRINTF lib/config.h #define NEED_PRINTF_INFINITE_LONG_DOUBLE 1 lib/vasnprintf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index f50ca3f..fa8cb22 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -215,7 +215,7 @@ local_wcslen (const wchar_t *s) #undef remainder #define remainder rem -#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL +#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) && !defined IN_LIBINTL /* Determine the decimal-point character according to the current locale. */ # ifndef decimal_point_char_defined # define decimal_point_char_defined 1 -- 1.6.0.2.229.g1293c