diff options
author | Eric Blake <ebb9@byu.net> | 2008-04-12 07:22:40 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2008-04-12 07:28:35 -0600 |
commit | 833333f7edfb45487d4a2cbae9f5e611c0c542cf (patch) | |
tree | 571fe560b473cd9ab9c93b81c10d5816aead3553 /doc/posix-headers | |
parent | b2cf43d6c45193102d4c90fc82007f15c1e98e47 (diff) | |
download | gnulib-833333f7edfb45487d4a2cbae9f5e611c0c542cf.tar.gz |
Work around Solaris 10 math.h bug.
* m4/math_h.m4 (gl_MATH_H): Check for bug.
(gl_MATH_H_DEFAULTS): Set up default.
* modules/math (Makefile.am): Replace new indicators.
* lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
* tests/test-math.c (main): Test this.
* m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
* doc/posix-headers/math.texi (math.h): Mention bug.
Reported by Nelson H. F. Beebe and Jim Meyering.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'doc/posix-headers')
-rw-r--r-- | doc/posix-headers/math.texi | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/posix-headers/math.texi b/doc/posix-headers/math.texi index a7c8df77c2..a0fa6aaff9 100644 --- a/doc/posix-headers/math.texi +++ b/doc/posix-headers/math.texi @@ -9,7 +9,17 @@ Portability problems fixed by Gnulib: @itemize @item The macro @code{NAN} is not defined on some platforms: -OpenBSD 4.0, AIX 5.1, IRIX 6.5, OSF/1 5.1, Solaris 10. +OpenBSD 4.0, AIX 5.1, IRIX 6.5, OSF/1 5.1. + +@item +The macro @code{NAN} is not exposed outside of C99 compilation on some +platforms: +glibc. + +@item +The macros @code{NAN} and @code{HUGE_VAL} expand to a function address +rather than a floating point constant on some platforms: +Solaris 10. @end itemize Portability problems not fixed by Gnulib: |