-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 9/27/2008 6:34 PM:
> This needs fixing (hmm, gnulib doesn't yet have a strtold module;
> time to start factoring strtod to long double):

Or maybe we go with this lighter-weight patch, which matches the
inaccuracies already present in c-strtold?  (ie. without a strtold module,
this is not a regression, since c-strtold did the same hack)

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkje09UACgkQ84KuGfSFAYABLACaA/ZdTmd7QG3hmcXMegPxoKV9
ZCwAn2gFEPYA75c+x7b3pp4ZF1+xl6az
=I4IV
-----END PGP SIGNATURE-----
From 022f3d3daa3356a4a80307e7e219b8df279f1614 Mon Sep 17 00:00:00 2001
From: Eric Blake <[EMAIL PROTECTED]>
Date: Sat, 27 Sep 2008 18:44:08 -0600
Subject: [PATCH] seq: work around missing strtold

* src/seq.c (strtold) [!HAVE_C99_STRTOLD]: Fall back to strtod.

Signed-off-by: Eric Blake <[EMAIL PROTECTED]>
---
 src/seq.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/seq.c b/src/seq.c
index b5f0651..0e1f097 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -35,6 +35,14 @@
 # define isfinite(x) ((x) * 0 == 0)
 #endif
 
+#if !HAVE_C99_STRTOLD
+static long double
+strtold (char const *nptr, char **endptr)
+{
+  return strtod (nptr, endptr);
+}
+#endif
+
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "seq"
 
-- 
1.6.0.2

_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to