]> Savannah Git Hosting - gnulib.git/commitdiff
strtof: Use the system's strtof() if available.
authorBruno Haible <bruno@clisp.org>
Tue, 23 Jul 2024 10:40:15 +0000 (12:40 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 15:30:59 +0000 (17:30 +0200)
* m4/strtof.m4 (gl_FUNC_STRTOF): Define HAVE_STRTOF if strtof exists.

ChangeLog
m4/strtof.m4

index f4958a1d664b7a11c6deee97da545c07efaefcba..f0c55a0d608c15920c24e099b7893ae7abbfabee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-07-23  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        strtof, strtod, strtold: Set errno upon gradual underflow.
index bdd3df8f48b4e9c18e90e95318244c1520165832..72c30b3d31e860ef2031a56bc539092aebfea992 100644 (file)
@@ -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 <stdlib.h>