]> granicus.if.org Git - vim/commitdiff
patch 8.2.0317: MSVC: _CRT_SECURE_NO_DEPRECATE not defined on DEBUG build v8.2.0317
authorBram Moolenaar <Bram@vim.org>
Tue, 25 Feb 2020 21:04:55 +0000 (22:04 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 25 Feb 2020 21:04:55 +0000 (22:04 +0100)
Problem:    MSVC: _CRT_SECURE_NO_DEPRECATE not defined on DEBUG build.
Solution:   Move where CFLAGS is updated. (Ken Takata, closes #5692)

src/Make_mvc.mak
src/version.c

index 6076dc172ecdd95ee6c38e859abce8e86c44b612..5be53cf6ad9eb90ee14fd2fbc6eaa03909428624 100644 (file)
@@ -663,9 +663,6 @@ OPTFLAG = /Ox
 !  if "$(OPTIMIZE)" != "SPACE"
 OPTFLAG = $(OPTFLAG) /GL
 !  endif
-# Visual Studio 2005 has 'deprecated' many of the standard CRT functions
-CFLAGS_DEPR = /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
-CFLAGS = $(CFLAGS) $(CFLAGS_DEPR)
 ! endif
 
 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.)
@@ -707,6 +704,12 @@ CFLAGS = $(CFLAGS) /Zl /MTd
 ! endif
 !endif # DEBUG
 
+!if $(MSVC_MAJOR) >= 8
+# Visual Studio 2005 has 'deprecated' many of the standard CRT functions
+CFLAGS_DEPR = /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
+CFLAGS = $(CFLAGS) $(CFLAGS_DEPR)
+!endif
+
 !include Make_all.mak
 !include testdir\Make_all.mak
 
index f10dcd55d2fc02727472efb37da4701fc8c79af5..5d76c5ee820a48ec64702e0b2d56bbdd2e92ba4e 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    317,
 /**/
     316,
 /**/