Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 35163 invoked from network); 10 Aug 2007 17:55:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Aug 2007 17:55:43 -0000 Received: (qmail 30371 invoked by uid 500); 10 Aug 2007 17:55:41 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 30354 invoked by uid 500); 10 Aug 2007 17:55:41 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 30343 invoked by uid 99); 10 Aug 2007 17:55:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 10:55:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 17:55:37 +0000 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l7AHtFGC011272 for ; Fri, 10 Aug 2007 17:55:15 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: missprint in include/rw/_mutex.h ? Date: Fri, 10 Aug 2007 11:54:15 -0600 Message-ID: In-Reply-To: <7BDB2168BEAEF14C98F1901FD2DE6438C917C0@epmsa009.minsk.epam.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: missprint in include/rw/_mutex.h ? Thread-Index: AcfbVnwx0/ul2dXFSoOo0CqmrN9cRwAHzGgA References: <7BDB2168BEAEF14C98F1901FD2DE6438C917C0@epmsa009.minsk.epam.com> From: "Travis Vitek" To: X-Virus-Checked: Checked by ClamAV on apache.org Well, as it stands the macro is doing exactly what its name indicates it will do. If it is defined, the implementation will not use forward declarations of the critical section struct and its functions. I agree that this is a little weird because the default will be for the macro to not be defined. The user has to define _RWSTD_NO_FWD_DECLARATIONS to get the declarations from the correct and normal place [windows.h]. It seems to me that the macro should be _RWSTD_NO_INCLUDE_WINDOWS_H or something similar. Travis >-----Original Message----- >From: Farid Zaripov [mailto:Farid_Zaripov@epam.com]=20 >Sent: Friday, August 10, 2007 6:58 AM >To: stdcxx-dev@incubator.apache.org >Subject: missprint in include/rw/_mutex.h ? > > Below is a part of the include/rw/_mutex.h file, line 116: > >-----------=20 ># ifdef _RWSTD_NO_FWD_DECLARATIONS >=20 ># include ># define _RWSTD_MUTEX_T _RTL_CRITICAL_SECTION >=20 ># else // if defined (_RWSTD_NO_FWD_DECLARATIONS) >=20 > // avoid #including this header (MFC doesn't like it) > // # include >-----------=20 > > Perhaps there in the first line should be #ifndef instead of #ifdef ? >=20 >Farid. >