+2016-08-24 Paul Eggert <eggert@cs.ucla.edu>
+
+ intprops: port to OpenVMS
+ Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
+ * doc/posix-headers/limits.texi: Document the problem.
+ * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
+ Define if not already defined.
+
2016-08-19 Assaf Gordon <assafgordon@gmail.com>
parse-datetime: improve debug implementation
@item
The macros @code{LLONG_MIN}, @code{LLONG_MAX}, @code{ULLONG_MAX} are not
defined on some platforms:
-AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1 with gcc.
+AIX 5.1, HP-UX 11, IRIX 6.5, OpenVMS, OSF/1 5.1 with gcc.
@item
The macros @code{WORD_BIT}, @code{LONG_BIT} are not defined on some platforms:
glibc 2.11 without @code{-D_GNU_SOURCE}, Cygwin, mingw, MSVC 9.
#define _GL_SIGNED_INT_MAXIMUM(e) \
(((_GL_INT_CONVERT (e, 1) << (sizeof ((e) + 0) * CHAR_BIT - 2)) - 1) * 2 + 1)
+/* Work around OpenVMS incompatibility with C99. */
+#if !defined LLONG_MAX && defined __INT64_MAX
+# define LLONG_MAX __INT64_MAX
+# define LLONG_MIN __INT64_MIN
+#endif
+
/* This include file assumes that signed types are two's complement without
padding bits; the above macros have undefined behavior otherwise.
If this is a problem for you, please let us know how to fix it for your host.