summaryrefslogtreecommitdiffstats
path: root/src/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/macros.h b/src/macros.h
index 5920b5dc7b..faa8ccc9c5 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -345,7 +345,11 @@
# endif
# if !defined(INFINITY)
# if defined(DBL_MAX)
-# define INFINITY (DBL_MAX+DBL_MAX)
+# ifdef VMS
+# define INFINITY DBL_MAX
+# else
+# define INFINITY (DBL_MAX+DBL_MAX)
+# endif
# else
# define INFINITY (1.0 / 0.0)
# endif