From 66e1bedf5867f3fba7bb84282ce4971054ee0ddf Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 19 Dec 2005 15:05:50 +0000 Subject: Quiet warnings of POSIX deprecation in win32 support sources. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357702 13f79535-47bb-0310-9956-ffa450edef68 --- support/win32/ApacheMonitor.c | 5 +++++ support/win32/wintty.c | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'support/win32') diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c index 8f396d39ed..25654c48fb 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 25156c405c..30f53ff5b4 100644 --- a/support/win32/wintty.c +++ b/support/win32/wintty.c @@ -39,6 +39,11 @@ #include #include +#if defined(_MSC_VER) && _MSC_VER >= 1400 +#define _CRT_SECURE_NO_DEPRECATE +#pragma warning(disable: 4996) +#endif + const char *options = "\nwintty: a utility for echoing the stdin stream to a new console window,\n" "\teven when invoked from within a service (such as the Apache server.)\n" -- cgit v1.2.3