apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r357637 - /apr/apr/branches/1.2.x/include/apr.hw
Date Mon, 19 Dec 2005 05:17:31 GMT
Author: wrowe
Date: Sun Dec 18 21:17:26 2005
New Revision: 357637

URL: http://svn.apache.org/viewcvs?rev=357637&view=rev
Log:

  Platform fix; backport 357636 for 2.2.3 (if ever released)
  to address MS Studio 2005's absurd discard of the POSIX api.

Modified:
    apr/apr/branches/1.2.x/include/apr.hw

Modified: apr/apr/branches/1.2.x/include/apr.hw
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.2.x/include/apr.hw?rev=357637&r1=357636&r2=357637&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/include/apr.hw (original)
+++ apr/apr/branches/1.2.x/include/apr.hw Sun Dec 18 21:17:26 2005
@@ -56,6 +56,14 @@
  */
 #pragma warning(disable: 4100 4127 4163 4201 4514; once: 4057 4075 4244)
 
+/* Ignore Microsoft's interpretation of secure development
+ * and the POSIX string handling API
+ */
+#if defined(_MSC_VER) && _MSC_VER >= 1400
+#define _CRT_SECURE_NO_DEPRECATE
+#pragma warning(disable: 4996)
+#endif
+
 /* Has windows.h already been included?  If so, our preferences don't matter,
  * but we will still need the winsock things no matter what was included.
  * If not, include a restricted set of windows headers to our tastes.
@@ -504,6 +512,14 @@
  */
 #if defined(_MSC_VER) && _MSC_VER >= 1200
 #pragma warning(pop)
+#endif
+
+/* Ignore Microsoft's interpretation of secure development 
+ * and their opinion of the POSIX standard string handling API
+ */
+#if defined(_MSC_VER) && _MSC_VER >= 1400
+#define _CRT_SECURE_NO_DEPRECATE
+#pragma warning(disable: 4996)
 #endif
 
 #endif /* WIN32 */



Mime
View raw message