From 9d63a16e7f8a86cf91e7aa2ba529e1416112f5c7 Mon Sep 17 00:00:00 2001 From: "John E. Malmberg" Date: Sat, 15 Jul 2017 17:10:51 +0200 Subject: [PATCH] math: Add support for OpenVMS. * lib/math.in.h [__VMS]: Include . * doc/posix-headers/math.texi: Mention OpenVMS issues. --- ChangeLog | 7 +++++++ doc/posix-headers/math.texi | 7 ++++++- lib/math.in.h | 5 +++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a6e53d810f..2634b3a6d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-07-15 John E. Malmberg + Bruno Haible + + math: Add support for OpenVMS. + * lib/math.in.h [__VMS]: Include . + * doc/posix-headers/math.texi: Mention OpenVMS issues. + 2017-07-15 Bruno Haible getdtablesize: Add minimal support for OpenVMS. diff --git a/doc/posix-headers/math.texi b/doc/posix-headers/math.texi index e64066392b..0cf56a05fb 100644 --- a/doc/posix-headers/math.texi +++ b/doc/posix-headers/math.texi @@ -35,13 +35,18 @@ glibc/HPPA, glibc/SPARC, AIX 5.1, IRIX 6.5, Solaris 9, MSVC 9. 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. diff --git a/lib/math.in.h b/lib/math.in.h index c76b9978c0..9e59278293 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -28,6 +28,11 @@ #ifndef _@GUARD_PREFIX@_MATH_H #define _@GUARD_PREFIX@_MATH_H +/* On OpenVMS, NAN, INFINITY, and HUGEVAL macros are defined in . */ +#if defined __VMS && ! defined NAN +# include +#endif + #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif -- 2.11.4.GIT