+2017-07-15 John E. Malmberg <wb8tyw@gmail.com>
+ Bruno Haible <bruno@clisp.org>
+
+ math: Add support for OpenVMS.
+ * lib/math.in.h [__VMS]: Include <fp.h>.
+ * doc/posix-headers/math.texi: Mention OpenVMS issues.
+
2017-07-15 Bruno Haible <bruno@clisp.org>
getdtablesize: Add minimal support for OpenVMS.
The macros @code{FP_ILOGB0} and @code{FP_ILOGBNAN} are not defined on some
platforms:
NetBSD 5.1, AIX 5.1, IRIX 6.5, Solaris 9, MSVC 9.
+
+@item
+The macros @code{NAN}, @code{HUGE_VALL}, and @code{INFINITY} are not
+defined on some platforms:
+OpenVMS.
@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.
+OSF/1 with Compaq (ex-DEC) C 6.4, OpenVMS.
@item
The macro or variable @code{math_errhandling} is not defined on some platforms:
glibc 2.11, OpenBSD 4.9, NetBSD 5.1, UP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin 1.7.9, mingw, MSVC 9.
#ifndef _@GUARD_PREFIX@_MATH_H
#define _@GUARD_PREFIX@_MATH_H
+/* On OpenVMS, NAN, INFINITY, and HUGEVAL macros are defined in <fp.h>. */
+#if defined __VMS && ! defined NAN
+# include <fp.h>
+#endif
+
#ifndef _GL_INLINE_HEADER_BEGIN
#error "Please include config.h first."
#endif