1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00
Files
gnulib/doc/posix-headers/math.texi
Eric Blake 833333f7ed 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>
2008-04-12 07:28:35 -06:00

31 lines
707 B
Plaintext

@node math.h
@section @file{math.h}
POSIX specification: @url{http://www.opengroup.org/susv3xbd/math.h.html}
Gnulib module: math
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.
@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:
@itemize
@item
@code{NAN} is not a compile time constant with some compilers:
OSF/1 with Compaq (ex-DEC) C 6.4.
@end itemize