diff options
author | Steve Hay <SteveHay@planit.com> | 2006-11-23 11:06:47 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2006-11-23 11:06:47 +0000 |
commit | c5b31784e02aac7c0b7f5bd436ee6d2fd57bbcf0 (patch) | |
tree | b0452c3b41be0fa70f856672f15f1318199b29c6 /win32 | |
parent | bdd9a5d66f1cec83b81754b37c772cc5ede73afe (diff) | |
download | perl-c5b31784e02aac7c0b7f5bd436ee6d2fd57bbcf0.tar.gz |
Silence VC8's warnings about "unsafe" CRT functions and POSIX CRT
function names being deprecated, and add a note to perltodo to
revisit this one day.
p4raw-id: //depot/perl@29358
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile | 6 | ||||
-rw-r--r-- | win32/makefile.mk | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/win32/Makefile b/win32/Makefile index bf0a1bbd82..e4573b560e 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -454,6 +454,12 @@ DEFINES = $(DEFINES) -DWIN64 -DCONSERVATIVE OPTIMIZE = $(OPTIMIZE) -Wp64 -fp:precise !ENDIF +# 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 +!ENDIF + # Use the MSVCRT read() fix if the PerlCRT was not chosen, but only when using # VC++ 6.x or earlier. Later versions use MSVCR70.dll, MSVCR71.dll, etc, which # do not require the fix. diff --git a/win32/makefile.mk b/win32/makefile.mk index 764e3d3aef..09f4b577ae 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -565,6 +565,12 @@ DEFINES += -DWIN64 -DCONSERVATIVE OPTIMIZE += -Wp64 -fp:precise .ENDIF +# 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 +.ENDIF + # Use the MSVCRT read() fix if the PerlCRT was not chosen, but only when using # VC++ 6.x or earlier. Later versions use MSVCR70.dll, MSVCR71.dll, etc, which # do not require the fix. |