From: Bruno Haible Date: Thu, 12 Dec 2019 09:07:40 +0000 (+0100) Subject: strtold: Fix autoconf test. X-Git-Tag: v1.0~4520 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=edc3c89f4e5fa9372fd10917c850d17c48cc985b;p=gnulib.git strtold: Fix autoconf test. * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod. --- diff --git a/ChangeLog b/ChangeLog index ab6859e5fb..b1c836cbfb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-12-12 Bruno Haible + + strtold: Fix autoconf test. + * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod. + 2019-12-11 Bruno Haible fsync tests: Skip test that is known to fail. diff --git a/m4/strtold.m4 b/m4/strtold.m4 index 389402ac43..15fea14814 100644 --- a/m4/strtold.m4 +++ b/m4/strtold.m4 @@ -1,4 +1,4 @@ -# strtold.m4 serial 5 +# strtold.m4 serial 6 dnl Copyright (C) 2002-2003, 2006-2019 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -33,7 +33,7 @@ numeric_equal (long double x, long double y) terminating character under some conditions. */ const char *string = "NaN"; char *term; - strtod (string, &term); + strtold (string, &term); if (term != string && *(term - 1) == 0) result |= 2; } @@ -61,7 +61,7 @@ numeric_equal (long double x, long double y) char *term; long double value; errno = 0; - value = strtod (string, &term); + value = strtold (string, &term); if (value != HUGE_VAL || term != (string + 3) || errno) result |= 16; }