summaryrefslogtreecommitdiffstats
path: root/support/win32
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2005-12-19 16:05:50 +0100
committerWilliam A. Rowe Jr <wrowe@apache.org>2005-12-19 16:05:50 +0100
commit66e1bedf5867f3fba7bb84282ce4971054ee0ddf (patch)
tree375df15daebc18bace7e74a9887fa4df1f6bbaac /support/win32
parentIn Apache-2.x, the function is called apr_pstrdup(). (diff)
downloadapache2-66e1bedf5867f3fba7bb84282ce4971054ee0ddf.tar.xz
apache2-66e1bedf5867f3fba7bb84282ce4971054ee0ddf.zip
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
Diffstat (limited to 'support/win32')
-rw-r--r--support/win32/ApacheMonitor.c5
-rw-r--r--support/win32/wintty.c5
2 files changed, 10 insertions, 0 deletions
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 <windows.h>
#include <windowsx.h>
#include <commctrl.h>
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 <stdlib.h>
#include <stdio.h>
+#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"