changeset 13149:cb033e9787c8

strtod: Avoid a possible C++ test error.
author Bruno Haible <bruno@clisp.org>
date Sun, 04 Apr 2010 23:13:31 +0200
parents f497bc6acd71
children dc107d7e5520
files ChangeLog m4/strtod.m4
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+	strtod: Avoid a possible C++ test error.
+	* m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
+	set REPLACE_STRTOD.
+
 2010-04-04  Bruno Haible  <bruno@clisp.org>
 
 	strerror: Update documentation.
--- a/m4/strtod.m4
+++ b/m4/strtod.m4
@@ -1,4 +1,4 @@
-# strtod.m4 serial 13
+# strtod.m4 serial 14
 dnl Copyright (C) 2002-2003, 2006-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -11,7 +11,6 @@
   dnl Note: AC_FUNC_STRTOD does AC_LIBOBJ([strtod]).
   if test $ac_cv_func_strtod = no; then
     HAVE_STRTOD=0
-    REPLACE_STRTOD=1
     gl_PREREQ_STRTOD
   else
     AC_CACHE_CHECK([whether strtod obeys C99], [gl_cv_func_strtod_works],