Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 34214 invoked from network); 24 Nov 2005 01:41:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Nov 2005 01:41:23 -0000 Received: (qmail 26704 invoked by uid 500); 24 Nov 2005 01:41:20 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 26660 invoked by uid 500); 24 Nov 2005 01:41:19 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 26649 invoked by uid 99); 24 Nov 2005 01:41:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2005 17:41:19 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [65.170.43.35] (HELO miex03.bfsc.local) (65.170.43.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2005 17:42:51 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5F098.0AA05288" Subject: [PATCH] fix deprecation warnings on MSVC 8 (.net 2005) Date: Wed, 23 Nov 2005 20:40:57 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] fix deprecation warnings on MSVC 8 (.net 2005) Thread-Index: AcXwmB3XgAZtlI6MR5eAk8eQu6kkmg== From: "Jerris, Michael MI" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C5F098.0AA05288 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Microsoft in all it's wizdom has decided to deprecate many of the string related functions in the newest version of it's compiler. The following simple patch gets rid of these warnings. Inclusion is much appretiated. Thanks Mike diff -ur apr-1.2.2/include/apr.hw apr/include/apr.hw --- apr-1.2.2/include/apr.hw 2005-06-14 10:11:16.000000000 -0400 +++ apr/include/apr.hw 2005-11-23 19:59:23.951268800 -0500 @@ -42,6 +42,17 @@ */ #if defined(_MSC_VER) && _MSC_VER >=3D 1200 #pragma warning(push, 3) + +#if (_MSC_VER >=3D 1400)=20 +/* Turn off warnings about the newly deprecated CRT functions. */ +#ifndef _CRT_SECURE_NO_DEPRECATE +#define _CRT_SECURE_NO_DEPRECATE +#endif +#ifndef _CRT_NONSTDC_NO_DEPRECATE +#define _CRT_NONSTDC_NO_DEPRECATE +#endif +#endif=20 + #endif =20 /* disable or reduce the frequency of... ------_=_NextPart_001_01C5F098.0AA05288 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable [PATCH] fix deprecation warnings on MSVC 8 (.net 2005)

Microsoft in all it's wizdom has = decided to deprecate many of the string related functions in the newest = version of it's compiler.  The following simple patch gets rid of = these warnings.  Inclusion is much appretiated.

Thanks
Mike


diff -ur apr-1.2.2/include/apr.hw = apr/include/apr.hw
--- = apr-1.2.2/include/apr.hw    2005-06-14 10:11:16.000000000 = -0400
+++ apr/include/apr.hw  = 2005-11-23 19:59:23.951268800 -0500
@@ -42,6 +42,17 @@
  */
 #if defined(_MSC_VER) && = _MSC_VER >=3D 1200
 #pragma warning(push, 3)
+
+#if (_MSC_VER >=3D 1400)
+/* Turn off warnings about the newly = deprecated CRT functions. */
+#ifndef = _CRT_SECURE_NO_DEPRECATE
+#define = _CRT_SECURE_NO_DEPRECATE
+#endif
+#ifndef = _CRT_NONSTDC_NO_DEPRECATE
+#define = _CRT_NONSTDC_NO_DEPRECATE
+#endif
+#endif
+
 #endif
 
 /* disable or reduce the = frequency of…


------_=_NextPart_001_01C5F098.0AA05288--