patch 9.0.2153: no support to build on OpenVMS
Problem: no support to build on OpenVMS
Solution: Add OpenVMS X86_64 platform port
closes: #13623
Co-authored-by: errael <errael@raelity.com>
Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/vim.h b/src/vim.h
index 7d0d128..2d5ae99 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -439,7 +439,12 @@
* The vimlong_T has sizeof(vimlong_T) >= 2 * sizeof(int).
* One use is simple handling of overflow in int calculations.
*/
+#if defined(VMS) && defined(VAX)
+// unsupported compiler
+typedef long vimlong_T;
+#else
typedef long long vimlong_T;
+#endif
#ifndef UNIX // For Unix this is included in os_unix.h
# include <stdio.h>
@@ -499,6 +504,10 @@
# include <wctype.h>
#endif
#include <stdarg.h>
+// older compilers do not define va_copy
+#ifndef va_copy
+# define va_copy(dst, src) ((dst) = (src))
+#endif
// for offsetof()
#include <stddef.h>