summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2022-01-24 11:24:08 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-24 11:24:08 +0000
commitc351dc1e0ca959084ba36bb350291334bf74b9f8 (patch)
tree2f8979a19950eadb42d7d3cc61f725bd90ad33d6 /src/vim.h
parent058ee7c5699ef551be5aa04c66b3cffc436e9b08 (diff)
patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not usefulv8.2.4199
Problem: MS-Windows: Support for MSVC 2003 is not useful. Solution: Remove the exceptions for MSVC 2003. (Ken Takata, closes #9616)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vim.h b/src/vim.h
index 357873c56e..f418e04c8f 100644
--- 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;