summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2005-12-19 05:27:39 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2005-12-19 05:27:39 +0000
commite5abdc76de42375e7e1faa57a8c76974a5461118 (patch)
tree1f17d8312aef9f504a55fb94278a93d0f5241c9f
parent80f505386da3bd0abf131614e5e1b85567cea05d (diff)
downloadlibapr-e5abdc76de42375e7e1faa57a8c76974a5461118.tar.gz
Platform fix; backport 357636 for 2.2.3 (if ever released)
to address MS Studio 2005's absurd discard of the POSIX api. [Note, reset twice because we temporarily set, then pop, the warning overrides, and we need this override to 'stick' after it's popped.] git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@357639 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--include/apr.hw16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/apr.hw b/include/apr.hw
index 500e7f0b6..1f5f6fa84 100644
--- a/include/apr.hw
+++ b/include/apr.hw
@@ -55,6 +55,14 @@
*/
#pragma warning(disable: 4100 4127 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.
@@ -517,6 +525,14 @@ struct iovec {
#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 */
#endif /* APR_H */