Mercurial > vim
diff src/os_vms_conf.h @ 33888:cb88e5c589d0 v9.0.2153
patch 9.0.2153: no support to build on OpenVMS
Commit: https://github.com/vim/vim/commit/1c8e233cb8357b4f218bfa777f6d81456d0b43a2
Author: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Date: Tue Dec 5 16:04:23 2023 +0100
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 10 Dec 2023 15:16:25 +0100 |
parents | 029c59bf78f1 |
children | 6d9e20b403e8 |
line wrap: on
line diff
--- a/src/os_vms_conf.h +++ b/src/os_vms_conf.h @@ -1,7 +1,14 @@ /* * os_vms_conf.h. Replaces auto/config.h for VMS + * */ +#if defined(__VMS) || defined(__vms) +#if !defined(VMS) +#define VMS +#endif +#endif + #define CASE_INSENSITIVE_FILENAME // Open VMS is case insensitive #define SPACE_IN_FILENAME // There could be space between user and passwd #define FNAME_ILLEGAL "|*#?%" // Illegal characters in a file name @@ -25,9 +32,6 @@ // Define when __DATE__ " " __TIME__ can be used #define HAVE_DATE_TIME -// Defined to the size of an int -#define VIM_SIZEOF_INT 4 - // #undef USEBCOPY #define USEMEMMOVE // #undef USEMEMCPY @@ -138,8 +142,11 @@ #undef HAVE_LSTAT #undef HAVE_STDINT_H +// Default features +#define FEAT_IPV6 + // Hardware specific -#ifdef VAX +#if defined(__VAX) || defined(VAX) #undef HAVE_GETTIMEOFDAY #undef HAVE_USLEEP #undef HAVE_STRCASECMP @@ -148,27 +155,39 @@ #undef HAVE_ISNAN #undef HAVE_XOS_R_H #define HAVE_NO_LONG_LONG +#define VIM_SIZEOF_INT 4 #define VIM_SIZEOF_LONG 4 #define LONG_LONG_MIN (-2147483647-1) #define LONG_LONG_MAX (2147483647) #define ULONG_LONG_MAX (4294967295U) -#else // AXP and IA64 + +#else // ALPHA, IA64, X86_64 #define HAVE_GETTIMEOFDAY #define HAVE_USLEEP #define HAVE_STRCASECMP #define HAVE_STRINGS_H #define HAVE_SIGSETJMP #define HAVE_ISNAN -#define HAVE_XOS_R_H -#define HAVE_NO_LONG_LONG +#undef HAVE_XOS_R_H +#undef HAVE_NO_LONG_LONG +#define VIM_SIZEOF_INT 4 #define VIM_SIZEOF_LONG 8 #define LONG_LONG_MIN (-9223372036854775807-1) #define LONG_LONG_MAX (9223372036854775807) #define ULONG_LONG_MAX (18446744073709551615U) + +#if defined(__x86_64) || defined(__x86_64__) +#if !defined(X86_64) +#define X86_64 +#endif +#define HAVE_ISNAN +#define HAVE_ISINF +#define HAVE_XOS_R_H +#endif #endif // Compiler specific -#ifdef VAXC +#if defined(VAXC) || defined(__VAXC) #undef HAVE_SELECT #undef HAVE_FCNTL_H #undef HAVE_UNISTD_H @@ -202,7 +221,7 @@ #define XUSE_MTSAFE_API #define HAVE_X11 #define WANT_X11 -#ifdef HAVE_XPM +#ifdef HAVE_XPM #define HAVE_X11_XPM_H #endif #define USE_FONTSET