summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2005-12-19 15:08:20 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2005-12-19 15:08:20 +0000
commitcfa97ca19507ef95224cd0572d7211be394622bc (patch)
treeb25b975b17cf5df5761ad81340f44b128a1575b1 /support
parent2166277ba403eb33d0daa47118fbc72eb6cc1091 (diff)
downloadhttpd-cfa97ca19507ef95224cd0572d7211be394622bc.tar.gz
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
Diffstat (limited to 'support')
-rw-r--r--support/win32/ApacheMonitor.c5
-rw-r--r--support/win32/wintty.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c
index 6392a1ff34..404e11259c 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 01a354b4a3..2fff8c37d8 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 <windows.h>
#include <stdlib.h>
#include <stdio.h>