aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Malmberg <wb8tyw@qsl.net>2018-08-01 08:11:00 -0500
committerJohn Malmberg <wb8tyw@qsl.net>2018-08-01 08:14:46 -0500
commit4ad924c4988cfbe68b3a81c3647b0cced9fd2af3 (patch)
tree58851c09fedcfe1e6ca491753b6b4a160b66c48f
parentc1f670b26671cc8d60d967bbcb42cb8deb3baf2b (diff)
downloadegawk-4ad924c4988cfbe68b3a81c3647b0cced9fd2af3.tar.gz
egawk-4ad924c4988cfbe68b3a81c3647b0cced9fd2af3.tar.bz2
egawk-4ad924c4988cfbe68b3a81c3647b0cced9fd2af3.zip
OpenVMS broken math.h fixes.
-rwxr-xr-x[-rw-r--r--]ChangeLog5
-rw-r--r--custom.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 68210057..2b9be8a3 100644..100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-01 John E. Malmberg <wb8tyw@qsl.net>
+
+ * custom.h: Include fp.h on OpenVMS.
+ Workaround for bug in math.h missing some declarations.
+
2018-07-31 Arnold D. Robbins <arnold@skeeve.com>
* interpret.h (unfield): Add a call to force_string() on
diff --git a/custom.h b/custom.h
index 90fd1f63..0ec8d1f9 100644
--- a/custom.h
+++ b/custom.h
@@ -38,6 +38,14 @@
#include "vms/redirect.h"
#endif
+/* OpenVMS has some definitions in fp.h that should be in math.h */
+/* From John Malmberg, wb8tyw@qsl.net */
+#ifdef __VMS
+#include <fp.h>
+/* isnan () macro is broken */
+#undef isnan
+#endif
+
/* For QNX, based on submission from Michael Hunter, mphunter@qnx.com */
#ifdef __QNX__
#define GETPGRP_VOID 1