Patch 8.2.0317
Problem: MSVC: _CRT_SECURE_NO_DEPRECATE not defined on DEBUG build.
Solution: Move where CFLAGS is updated. (Ken Takata, closes #5692)
Files: src/Make_mvc.mak
*** ../vim-8.2.0316/src/Make_mvc.mak 2020-02-17 22:53:11.485034470 +0100
--- src/Make_mvc.mak 2020-02-25 22:03:19.408179952 +0100
***************
*** 663,671 ****
! 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.)
--- 663,668 ----
***************
*** 707,712 ****
--- 704,715 ----
! 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
*** ../vim-8.2.0316/src/version.c 2020-02-25 21:47:42.303474610 +0100
--- src/version.c 2020-02-25 22:04:33.215915212 +0100
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 317,
/**/
--
Support your right to bare arms! Wear short sleeves!
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202002252105.01PL5RLl015200%40masaka.moolenaar.net.