Mercurial > vim
comparison src/os_win32.c @ 23090:fb27d3a7a24b v8.2.2091
patch 8.2.2091: MS-Windows: build warnings
Commit: https://github.com/vim/vim/commit/29d2f45c8855fd98897c5db92d896c161e95d0f1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 4 19:42:52 2020 +0100
patch 8.2.2091: MS-Windows: build warnings
Problem: MS-Windows: build warnings.
Solution: Add a #pragma to suppress the deprecation warning. (Ken Takata)
Avoid using a non-ASCII character. (closes #7421)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Dec 2020 19:45:03 +0100 |
parents | ab8a9b9bd349 |
children | b545334ae654 |
comparison
equal
deleted
inserted
replaced
23089:beedb1cba6dd | 23090:fb27d3a7a24b |
---|---|
858 | 858 |
859 return bResult && GetLastError() == ERROR_SUCCESS; | 859 return bResult && GetLastError() == ERROR_SUCCESS; |
860 } | 860 } |
861 #endif | 861 #endif |
862 | 862 |
863 #ifdef _MSC_VER | |
864 // Suppress the deprecation warning for using GetVersionEx(). | |
865 // It is needed for implementing "windowsversion()". | |
866 # pragma warning(push) | |
867 # pragma warning(disable: 4996) | |
868 #endif | |
863 /* | 869 /* |
864 * Set "win8_or_later" and fill in "windowsVersion" if possible. | 870 * Set "win8_or_later" and fill in "windowsVersion" if possible. |
865 */ | 871 */ |
866 void | 872 void |
867 PlatformId(void) | 873 PlatformId(void) |
888 win32_enable_privilege(SE_SECURITY_NAME, TRUE); | 894 win32_enable_privilege(SE_SECURITY_NAME, TRUE); |
889 #endif | 895 #endif |
890 done = TRUE; | 896 done = TRUE; |
891 } | 897 } |
892 } | 898 } |
899 #ifdef _MSC_VER | |
900 # pragma warning(pop) | |
901 #endif | |
893 | 902 |
894 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) | 903 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) |
895 | 904 |
896 # define SHIFT (SHIFT_PRESSED) | 905 # define SHIFT (SHIFT_PRESSED) |
897 # define CTRL (RIGHT_CTRL_PRESSED | LEFT_CTRL_PRESSED) | 906 # define CTRL (RIGHT_CTRL_PRESSED | LEFT_CTRL_PRESSED) |