Mercurial > vim
diff src/vim.h @ 27342:41a940219183 v8.2.4199
patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not useful
Commit: https://github.com/vim/vim/commit/c351dc1e0ca959084ba36bb350291334bf74b9f8
Author: K.Takata <kentkt@csc.jp>
Date: Mon Jan 24 11:24:08 2022 +0000
patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not useful
Problem: MS-Windows: Support for MSVC 2003 is not useful.
Solution: Remove the exceptions for MSVC 2003. (Ken Takata, closes https://github.com/vim/vim/issues/9616)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 24 Jan 2022 12:30:04 +0100 |
parents | d5570658f18d |
children | 9a9c34c84cd4 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -356,7 +356,7 @@ typedef __int64 long_i; // that change size between 32-bit and 64-bit platforms. For any such type, // __w64 should appear only on the 32-bit definition of the typedef. // Define __w64 as an empty token for everything but MSVC 7.x or later. -# if !defined(_MSC_VER) || (_MSC_VER < 1300) +# ifndef _MSC_VER # define __w64 # endif typedef unsigned long __w64 long_u; @@ -383,7 +383,7 @@ typedef long __w64 long_i; * We assume that when fseeko() is available then ftello() is too. * Note that Windows has different function names. */ -#if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__) +#ifdef MSWIN typedef __int64 off_T; # ifdef __MINGW32__ # define vim_lseek lseek64 @@ -2162,9 +2162,8 @@ typedef struct typedef int Clipboard_T; // This is required for the prototypes. #endif -// Use 64-bit stat structure if available. -#if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__) -# define HAVE_STAT64 +// Use 64-bit stat structure on MS-Windows. +#ifdef MSWIN typedef struct _stat64 stat_T; #else typedef struct stat stat_T;