Mercurial > vim
diff src/vim.h @ 15517:2ad5f0ffaa2e v8.1.0766
patch 8.1.0766: various problems when using Vim on VMS
commit https://github.com/vim/vim/commit/88c86eb751de9e7e410b405084d35b32fafc2a24
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 17 17:13:30 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Jan 2019 17:15:06 +0100 |
parents | 41fbbcea0f1b |
children | 3ef31ce9d9f9 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -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. */