Mercurial > vim
diff src/time.c @ 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 | da5b8e1405c6 |
children | 898f520e798b |
line wrap: on
line diff
--- 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 *b 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 /*