]> Savannah Git Hosting - gnulib.git/commitdiff
math: Add support for OpenVMS.
authorJohn E. Malmberg <wb8tyw@gmail.com>
Sat, 15 Jul 2017 15:10:51 +0000 (17:10 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Jul 2017 15:10:51 +0000 (17:10 +0200)
* lib/math.in.h [__VMS]: Include <fp.h>.
* doc/posix-headers/math.texi: Mention OpenVMS issues.

ChangeLog
doc/posix-headers/math.texi
lib/math.in.h

index a6e53d810f37fec6386a7ec10c0fc0909fca4bbc..2634b3a6d842a174f2ebda8b5bdd3e24eaaf2a2b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index e64066392b0182946d5fbccb3d6e45691babb630..0cf56a05fb017c1e01ad41884668b20db5af26e4 100644 (file)
@@ -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.
index c76b9978c0f6dd919da4293133c2d9a359d5c57f..9e592782936023f17adcd8a28e7c4c5df4f9803c 100644 (file)
 #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