Author: wrowe
Date: Sun Dec 18 21:27:39 2005
New Revision: 357639
URL: http://svn.apache.org/viewcvs?rev=357639&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.
[Note, reset twice because we temporarily set, then pop, the
warning overrides, and we need this override to 'stick' after
it's popped.]
Modified:
apr/apr/branches/0.9.x/include/apr.hw
Modified: apr/apr/branches/0.9.x/include/apr.hw
URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/include/apr.hw?rev=357639&r1=357638&r2=357639&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/include/apr.hw (original)
+++ apr/apr/branches/0.9.x/include/apr.hw Sun Dec 18 21:27:39 2005
@@ -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.
@@ -515,6 +523,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 */
|