From: William A. Rowe Jr Date: Mon, 19 Dec 2005 15:08:20 +0000 (+0000) Subject: Fix POSIX deprecation warnings in MSVC14 (Studio 2005) X-Git-Tag: 2.0.56~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfa97ca19507ef95224cd0572d7211be394622bc;p=thirdparty%2Fapache%2Fhttpd.git Fix POSIX deprecation warnings in MSVC14 (Studio 2005) Backports fix 357702 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@357704 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c index 6392a1ff34f..404e11259ca 100644 --- a/support/win32/ApacheMonitor.c +++ b/support/win32/ApacheMonitor.c @@ -31,6 +31,11 @@ #define OEMRESOURCE #endif +#if defined(_MSC_VER) && _MSC_VER >= 1400 +#define _CRT_SECURE_NO_DEPRECATE +#pragma warning(disable: 4996) +#endif + #include #include #include diff --git a/support/win32/wintty.c b/support/win32/wintty.c index 01a354b4a34..2fff8c37d82 100644 --- a/support/win32/wintty.c +++ b/support/win32/wintty.c @@ -35,6 +35,12 @@ */ #define WIN32_LEAN_AND_MEAN + +#if defined(_MSC_VER) && _MSC_VER >= 1400 +#define _CRT_SECURE_NO_DEPRECATE +#pragma warning(disable: 4996) +#endif + #include #include #include