From 18bc65c7ab881fe8d0bf7c93ec15d3720224b3b0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 23 Jul 2024 12:40:15 +0200 Subject: [PATCH] strtof: Use the system's strtof() if available. * m4/strtof.m4 (gl_FUNC_STRTOF): Define HAVE_STRTOF if strtof exists. --- ChangeLog | 5 +++++ m4/strtof.m4 | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f4958a1d66..f0c55a0d60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-07-23 Bruno Haible + + strtof: Use the system's strtof() if available. + * m4/strtof.m4 (gl_FUNC_STRTOF): Define HAVE_STRTOF if strtof exists. + 2024-07-23 Bruno Haible strtof, strtod, strtold: Set errno upon gradual underflow. diff --git a/m4/strtof.m4 b/m4/strtof.m4 index bdd3df8f48..72c30b3d31 100644 --- a/m4/strtof.m4 +++ b/m4/strtof.m4 @@ -1,5 +1,5 @@ # strtof.m4 -# serial 1 +# serial 2 dnl Copyright (C) 2002-2003, 2006-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -19,6 +19,8 @@ AC_DEFUN([gl_FUNC_STRTOF], HAVE_STRTOF=0 fi if test $HAVE_STRTOF = 1; then + AC_DEFINE([HAVE_STRTOF], [1], + [Define to 1 if you have the 'strtof' function.]) AC_CACHE_CHECK([whether strtof obeys C99], [gl_cv_func_strtof_works], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include -- 2.39.5