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 39 40
Description:
strtold() function: convert string to 'long double'.
Files:
lib/strtold.c
lib/strtod.c
m4/strtold.m4
m4/math_h.m4
m4/ldexpl.m4
Depends-on:
stdlib-h
c-ctype [test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1]
math-h [test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1]
bool [test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1]
isinf [test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1]
strtod [{ test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
configure.ac:
gl_FUNC_STRTOLD
gl_CONDITIONAL([GL_COND_OBJ_STRTOLD],
[test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1])
AM_COND_IF([GL_COND_OBJ_STRTOLD], [
gl_PREREQ_STRTOLD
])
gl_STDLIB_MODULE_INDICATOR([strtold])
Makefile.am:
if GL_COND_OBJ_STRTOLD
lib_SOURCES += strtold.c
endif
Include:
<stdlib.h>
License:
LGPL
Maintainer:
all