]> Savannah Git Hosting - gnulib.git/commitdiff
strtold: Fix autoconf test.
authorBruno Haible <bruno@clisp.org>
Thu, 12 Dec 2019 09:07:40 +0000 (10:07 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 12 Dec 2019 09:07:40 +0000 (10:07 +0100)
* m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.

ChangeLog
m4/strtold.m4

index ab6859e5fbf5b7c2de11f4133e5ff38336b0f344..b1c836cbfb4f19331ba64970e74d89e77cb0c8bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-12-12  Bruno Haible  <bruno@clisp.org>
+
+       strtold: Fix autoconf test.
+       * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
+
 2019-12-11  Bruno Haible  <bruno@clisp.org>
 
        fsync tests: Skip test that is known to fail.
index 389402ac43170bdf5085a69435c6a8cb57830ef2..15fea14814b4a6703d6561854d8f581fad3be030 100644 (file)
@@ -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;
   }