summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile2
-rw-r--r--win32/makefile.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/win32/Makefile b/win32/Makefile
index 001c7f380a..cbfae95a26 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -457,7 +457,7 @@ OPTIMIZE = $(OPTIMIZE) -Wp64 -fp:precise
# For now, silence VC++ 8.x's warnings about "unsafe" CRT functions and POSIX
# CRT function names being deprecated.
!IF "$(CCTYPE)" == "MSVC80" || "$(CCTYPE)" == "MSVC80FREE"
-DEFINES = $(DEFINES) -D_CRT_SECURE_NO_DEPRECATE -wd4996
+DEFINES = $(DEFINES) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
!ENDIF
# Use the MSVCRT read() fix if the PerlCRT was not chosen, but only when using
diff --git a/win32/makefile.mk b/win32/makefile.mk
index f565f84fe1..60688d9c8f 100644
--- a/win32/makefile.mk
+++ b/win32/makefile.mk
@@ -568,7 +568,7 @@ OPTIMIZE += -Wp64 -fp:precise
# For now, silence VC++ 8.x's warnings about "unsafe" CRT functions and POSIX
# CRT function names being deprecated.
.IF "$(CCTYPE)" == "MSVC80" || "$(CCTYPE)" == "MSVC80FREE"
-DEFINES += -D_CRT_SECURE_NO_DEPRECATE -wd4996
+DEFINES += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
.ENDIF
# Use the MSVCRT read() fix if the PerlCRT was not chosen, but only when using