Skip to content

Commit 703ea9e

Browse files
committed
patch 8.2.0317: MSVC: _CRT_SECURE_NO_DEPRECATE not defined on DEBUG build
Problem: MSVC: _CRT_SECURE_NO_DEPRECATE not defined on DEBUG build. Solution: Move where CFLAGS is updated. (Ken Takata, closes #5692)
1 parent 8d588cc commit 703ea9e

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/Make_mvc.mak

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,6 @@ OPTFLAG = /Ox
663663
! if "$(OPTIMIZE)" != "SPACE"
664664
OPTFLAG = $(OPTFLAG) /GL
665665
! endif
666-
# Visual Studio 2005 has 'deprecated' many of the standard CRT functions
667-
CFLAGS_DEPR = /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
668-
CFLAGS = $(CFLAGS) $(CFLAGS_DEPR)
669666
! endif
670667

671668
# (/Wp64 is deprecated in VC9 and generates an obnoxious warning.)
@@ -707,6 +704,12 @@ CFLAGS = $(CFLAGS) /Zl /MTd
707704
! endif
708705
!endif # DEBUG
709706

707+
!if $(MSVC_MAJOR) >= 8
708+
# Visual Studio 2005 has 'deprecated' many of the standard CRT functions
709+
CFLAGS_DEPR = /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
710+
CFLAGS = $(CFLAGS) $(CFLAGS_DEPR)
711+
!endif
712+
710713
!include Make_all.mak
711714
!include testdir\Make_all.mak
712715

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
317,
741743
/**/
742744
316,
743745
/**/

0 commit comments

Comments
 (0)