projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Work around Solaris 10 math.h bug.
[gnulib.git]
/
m4
/
strtod.m4
diff --git
a/m4/strtod.m4
b/m4/strtod.m4
index
5127466
..
ba411a9
100644
(file)
--- a/
m4/strtod.m4
+++ b/
m4/strtod.m4
@@
-25,7
+25,8
@@
AC_DEFUN([gl_FUNC_STRTOD],
const char *string = "-0x";
char *term;
double value = strtod (string, &term);
- if (1 / value != -HUGE_VAL || term != (string + 2))
+ double zero = 0.0;
+ if (1.0 / value != -1.0 / zero || term != (string + 2))
return 1;
}
{