Branch
Hash :
51aa7ef1
Author :
Date :
2025-09-16T16:30:38
strtof: Work around mingw bug with overflow. * lib/strtod.c (STRTOD): Recognize overflow. * modules/strtof (Depends-on): Add isinf. * modules/strtod (Depends-on): Likewise. * modules/strtold (Depends-on): Likewise. * doc/posix-functions/strtof.texi: Update mingw version.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Description:
strtod() function: convert string to 'double'.
Files:
lib/strtod.c
m4/strtod.m4
m4/ldexp.m4
Depends-on:
stdlib-h
strtod-obsolete
c-ctype [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1]
math-h [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1]
bool [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1]
isinf [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1]
configure.ac:
gl_FUNC_STRTOD
gl_CONDITIONAL([GL_COND_OBJ_STRTOD],
[test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1])
AM_COND_IF([GL_COND_OBJ_STRTOD], [
gl_PREREQ_STRTOD
])
gl_STDLIB_MODULE_INDICATOR([strtod])
Makefile.am:
if GL_COND_OBJ_STRTOD
lib_SOURCES += strtod.c
endif
Include:
<stdlib.h>
License:
LGPL
Maintainer:
all