Mercurial > vim
comparison src/dosinst.h @ 19380:1e78bf92f168 v8.2.0248
patch 8.2.0248: MS-Windows: dealing with deprecation is too complicated
Commit: https://github.com/vim/vim/commit/2f189750887636fecd440d7ef353d9224e48713f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 12 21:15:43 2020 +0100
patch 8.2.0248: MS-Windows: dealing with deprecation is too complicated
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Feb 2020 21:30:03 +0100 |
parents | 6e3dc2d630c2 |
children | 9800e126eaa2 |
comparison
equal
deleted
inserted
replaced
19379:48ab371a959f | 19380:1e78bf92f168 |
---|---|
8 */ | 8 */ |
9 /* | 9 /* |
10 * dosinst.h: Common code for dosinst.c and uninstall.c | 10 * dosinst.h: Common code for dosinst.c and uninstall.c |
11 */ | 11 */ |
12 | 12 |
13 // Visual Studio 2005 has 'deprecated' many of the standard CRT functions | |
14 #if _MSC_VER >= 1400 | |
15 # define _CRT_SECURE_NO_DEPRECATE | |
16 # define _CRT_NONSTDC_NO_DEPRECATE | |
17 #endif | |
18 | |
19 #include <stdio.h> | 13 #include <stdio.h> |
20 #include <stdlib.h> | 14 #include <stdlib.h> |
21 #include <string.h> | 15 #include <string.h> |
22 #include <sys/stat.h> | 16 #include <sys/stat.h> |
23 #include <fcntl.h> | 17 #include <fcntl.h> |
24 | 18 |
25 #ifndef UNIX_LINT | 19 #ifndef UNIX_LINT |
26 # include "vimio.h" | 20 # include <io.h> |
27 # include <ctype.h> | 21 # include <ctype.h> |
28 | 22 |
29 # include <direct.h> | 23 # include <direct.h> |
30 | 24 |
31 # include <windows.h> | 25 # include <windows.h> |