summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2007-08-21 09:55:07 +0000
committerSteve Hay <SteveHay@planit.com>2007-08-21 09:55:07 +0000
commit26a6faa8c051ae454ebc29802780673024f05cbd (patch)
tree1168bd1316c341ddde3a08d3cba1df12c9576932 /win32
parent96dbb1e1dd7f12c7906d41eefbd872a25777d46c (diff)
downloadperl-26a6faa8c051ae454ebc29802780673024f05cbd.tar.gz
Use -D_CRT_NONSTDC_NO_DEPRECATE rather than -wd4996 to suppress warnings
about POSIX CRT function names being deprecated in VC8 (-wd4996 suppresses all deprecated function warnings, so is more wide-ranging than is required) p4raw-id: //depot/perl@31742
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