0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0766: various problems when using Vim on VMS

Problem:    Various problems when using Vim on VMS.
Solution:   Various fixes. Define long_long_T. (Zoltan Arpadffy)
This commit is contained in:
Bram Moolenaar
2019-01-17 17:13:30 +01:00
parent 4131fd5509
commit 88c86eb751
14 changed files with 114 additions and 48 deletions

View File

@@ -337,6 +337,17 @@
typedef unsigned char char_u;
typedef unsigned short short_u;
typedef unsigned int int_u;
/* Older systems do not have support for long long
* use a typedef instead of hadcoded long long */
#ifdef HAVE_NO_LONG_LONG
typedef long long_long_T;
typedef long unsigned long_long_u_T;
#else
typedef long long long_long_T;
typedef long long unsigned long_long_u_T;
#endif
/* Make sure long_u is big enough to hold a pointer.
* On Win64, longs are 32 bits and pointers are 64 bits.
* For printf() and scanf(), we need to take care of long_u specifically. */