From cfa97ca19507ef95224cd0572d7211be394622bc Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 19 Dec 2005 15:08:20 +0000 Subject: [PATCH] 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 --- support/win32/ApacheMonitor.c | 5 +++++ support/win32/wintty.c | 6 ++++++ 2 files changed, 11 insertions(+) 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 -- 2.47.2