diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-12 21:15:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-12 21:15:43 +0100 |
commit | 2f189750887636fecd440d7ef353d9224e48713f (patch) | |
tree | 83c7cad211df84723e00796ee033739fbccd78c1 /src/dosinst.h | |
parent | 3b0ef8cfdbb6cb5a9cb2dc093132b78d7a52c667 (diff) | |
download | vim-git-2f189750887636fecd440d7ef353d9224e48713f.tar.gz |
patch 8.2.0248: MS-Windows: dealing with deprecation is too complicatedv8.2.0248
Problem: MS-Windows: dealing with deprecation is too complicated.
Solution: Use io.h directly. Move _CRT_SECURE_NO_DEPRECATE to the build
file. Suppress C4091 warning by setting "_WIN32_WINNT". (Ken
Takata, closes #5626)
Diffstat (limited to 'src/dosinst.h')
-rw-r--r-- | src/dosinst.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/dosinst.h b/src/dosinst.h index c9d8c929b..a849dad90 100644 --- a/src/dosinst.h +++ b/src/dosinst.h @@ -10,12 +10,6 @@ * dosinst.h: Common code for dosinst.c and uninstall.c */ -// Visual Studio 2005 has 'deprecated' many of the standard CRT functions -#if _MSC_VER >= 1400 -# define _CRT_SECURE_NO_DEPRECATE -# define _CRT_NONSTDC_NO_DEPRECATE -#endif - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -23,7 +17,7 @@ #include <fcntl.h> #ifndef UNIX_LINT -# include "vimio.h" +# include <io.h> # include <ctype.h> # include <direct.h> |