Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 45873 invoked from network); 10 Aug 2007 16:07:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Aug 2007 16:07:29 -0000 Received: (qmail 41954 invoked by uid 500); 10 Aug 2007 16:07:28 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 41940 invoked by uid 500); 10 Aug 2007 16:07:27 -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 41929 invoked by uid 99); 10 Aug 2007 16:07:27 -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 09:07:27 -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: domain of Farid_Zaripov@epam.com designates 217.21.63.3 as permitted sender) Received: from [217.21.63.3] (HELO EPMSA009.epam.com) (217.21.63.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 16:07:24 +0000 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 19:07:02 +0300 Message-ID: <7BDB2168BEAEF14C98F1901FD2DE6438C91823@epmsa009.minsk.epam.com> In-Reply-To: <46BC8B2C.6050902@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: missprint in include/rw/_mutex.h ? Thread-Index: AcfbZ0zPmB2dfWibT5mmg5IWrVNPQgAAHalA References: <7BDB2168BEAEF14C98F1901FD2DE6438C917C0@epmsa009.minsk.epam.com> <46BC8B2C.6050902@roguewave.com> From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Martin Sebor [mailto:sebor@roguewave.com]=20 > Sent: Friday, August 10, 2007 6:59 PM > To: stdcxx-dev@incubator.apache.org > Subject: Re: missprint in include/rw/_mutex.h ? >=20 > Farid Zaripov wrote: > > 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=20 > of #ifdef ? >=20 > What makes you think that? Just from comment in #else :) # ifdef _RWSTD_NO_FWD_DECLARATIONS # else // if defined (_RWSTD_NO_FWD_DECLARATIONS) I thought that froward declaration is the #including , but now I understand that is conversely declaring the function prototypes instead of #including . The comment on #else should be // if !defined (_RWSTD_NO_FWD_DECLARATIONS) Farid.