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 #9616)
diff --git a/src/vim.h b/src/vim.h
index 357873c..f418e04 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -356,7 +356,7 @@
// 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 @@
* 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 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;