]> granicus.if.org Git - apache/commitdiff
Quiet warnings of POSIX deprecation in win32 support sources.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 19 Dec 2005 15:05:50 +0000 (15:05 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 19 Dec 2005 15:05:50 +0000 (15:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357702 13f79535-47bb-0310-9956-ffa450edef68

support/win32/ApacheMonitor.c
support/win32/wintty.c

index 8f396d39edbf2ffe77bf7e4b1fd2c640a9c3ed5b..25654c48fb6f2b3b0c41ce3478d1ea0a179b3d10 100644 (file)
 #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>
index 25156c405c72abd0bb9155eab1dde4103518ccd7..30f53ff5b4f8fdc6d82cf5b52562487ce5618172 100644 (file)
 #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"