]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix POSIX deprecation warnings in MSVC14 (Studio 2005)
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 19 Dec 2005 15:08:20 +0000 (15:08 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 19 Dec 2005 15:08:20 +0000 (15:08 +0000)
  Backports fix 357702

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@357704 13f79535-47bb-0310-9956-ffa450edef68

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

index 6392a1ff34f98c26a40e5a270520b641fe15a88c..404e11259cacba2b7a3f8db156805a21a733d3a6 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 01a354b4a34008ae6b1e4ccfb5139d341e380928..2fff8c37d824988266b9a5c9fe3db868c633af74 100644 (file)
  */
 
 #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>