You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2005/12/19 16:08:24 UTC
svn commit: r357704 - in /httpd/httpd/branches/2.0.x/support/win32:
ApacheMonitor.c wintty.c
Author: wrowe
Date: Mon Dec 19 07:08:20 2005
New Revision: 357704
URL: http://svn.apache.org/viewcvs?rev=357704&view=rev
Log:
Fix POSIX deprecation warnings in MSVC14 (Studio 2005)
Backports fix 357702
Modified:
httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c
httpd/httpd/branches/2.0.x/support/win32/wintty.c
Modified: httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c?rev=357704&r1=357703&r2=357704&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c (original)
+++ httpd/httpd/branches/2.0.x/support/win32/ApacheMonitor.c Mon Dec 19 07:08:20 2005
@@ -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>
Modified: httpd/httpd/branches/2.0.x/support/win32/wintty.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/support/win32/wintty.c?rev=357704&r1=357703&r2=357704&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/support/win32/wintty.c (original)
+++ httpd/httpd/branches/2.0.x/support/win32/wintty.c Mon Dec 19 07:08:20 2005
@@ -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>