diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-11 23:01:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-11 23:01:39 +0100 |
commit | 49c99fcca00740ae4feaba82bef4f9dc70b65318 (patch) | |
tree | c611d029f7c2f857dc78dec8796dbf19573c75fa /src/Make_mvc.mak | |
parent | 5489eab34528ba31054bc7c99af120b07f543b78 (diff) |
patch 8.2.0246: MSVC: deprecation warnings with Rubyv8.2.0246
Problem: MSVC: deprecation warnings with Ruby.
Solution: Move _CRT_SECURE_NO_DEPRECATE to build file. (Ken Takata,
closes #5622)
Diffstat (limited to 'src/Make_mvc.mak')
-rw-r--r-- | src/Make_mvc.mak | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak index c51f8045a7..509708167e 100644 --- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -657,6 +657,8 @@ OPTFLAG = /Ox ! if "$(OPTIMIZE)" != "SPACE" OPTFLAG = $(OPTFLAG) /GL ! endif +# Visual Studio 2005 has 'deprecated' many of the standard CRT functions +CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE ! endif # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.) |