Skip to content

Commit

Permalink
Fix 8.2.0246 and 8.2.0248
Browse files Browse the repository at this point in the history
Fix that _CRT_SECURE_NO_DEPRECATE was not defined on DEBUG build.
  • Loading branch information
k-takata committed Feb 25, 2020
1 parent e010c72 commit 132bc52
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Make_mvc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 132bc52

Please sign in to comment.