K.Takata's patch queue for Vim
Revisión | abc706c13221157295a04b50e9fb3ee5f67c7211 (tree) |
---|---|
Tiempo | 2020-12-04 11:38:20 |
Autor | K.Takata <kentkt@csc....> |
Commiter | K.Takata |
Add a new patch
@@ -28,4 +28,5 @@ | ||
28 | 28 | win32-drop-support-for-pre-vista.patch |
29 | 29 | msvc-use-gf-flag.patch |
30 | 30 | win32-disable-quickedit-by-mouse.patch |
31 | +suppress-warning-C4996.patch | |
31 | 32 | fix-config_cache-removal.patch #+rejected |
@@ -0,0 +1,29 @@ | ||
1 | +# HG changeset patch | |
2 | +# Parent ede5237f9eaec3a68eb5f63455df747f70ab5656 | |
3 | + | |
4 | +diff --git a/src/os_win32.c b/src/os_win32.c | |
5 | +--- a/src/os_win32.c | |
6 | ++++ b/src/os_win32.c | |
7 | +@@ -839,6 +839,12 @@ win32_enable_privilege(LPTSTR lpszPrivil | |
8 | + } | |
9 | + #endif | |
10 | + | |
11 | ++#ifdef _MSC_VER | |
12 | ++// Suppress the deprecation warning for using GetVersionEx. | |
13 | ++// It is needed for implementing "windowsversion()". | |
14 | ++# pragma warning(push) | |
15 | ++# pragma warning(disable: 4996) | |
16 | ++#endif | |
17 | + /* | |
18 | + * Set "win8_or_later" and fill in "windowsVersion" if possible. | |
19 | + */ | |
20 | +@@ -869,6 +875,9 @@ PlatformId(void) | |
21 | + done = TRUE; | |
22 | + } | |
23 | + } | |
24 | ++#ifdef _MSC_VER | |
25 | ++# pragma warning(pop) | |
26 | ++#endif | |
27 | + | |
28 | + #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) | |
29 | + |