summaryrefslogtreecommitdiff
path: root/src/time.c
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/time.c
parent058ee7c5699ef551be5aa04c66b3cffc436e9b08 (diff)
downloadvim-git-c351dc1e0ca959084ba36bb350291334bf74b9f8.tar.gz
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/time.c')
-rw-r--r--src/time.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/time.c b/src/time.c
index 020f78dd0..78e20eb13 100644
--- a/src/time.c
+++ b/src/time.c
@@ -1022,14 +1022,6 @@ get8ctime(FILE *fd)
return n;
}
-#ifdef _MSC_VER
-# if (_MSC_VER <= 1200)
-// This line is required for VC6 without the service pack. Also see the
-// matching #pragma below.
- # pragma optimize("", off)
-# endif
-#endif
-
/*
* Write time_T to file "fd" in 8 bytes.
* Returns FAIL when the write failed.
@@ -1068,22 +1060,16 @@ time_to_bytes(time_T the_time, char_u *buf)
buf[bi++] = 0;
else
{
-#if defined(SIZEOF_TIME_T) && SIZEOF_TIME_T > 4
+# if defined(SIZEOF_TIME_T) && SIZEOF_TIME_T > 4
c = (int)(wtime >> (i * 8));
-#else
+# else
c = (int)((long_u)wtime >> (i * 8));
-#endif
+# endif
buf[bi++] = c;
}
}
}
-#ifdef _MSC_VER
-# if (_MSC_VER <= 1200)
- # pragma optimize("", on)
-# endif
-#endif
-
#endif
/*