Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 12802 invoked from network); 14 Sep 2006 16:16:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 16:16:58 -0000 Received: (qmail 82305 invoked by uid 500); 14 Sep 2006 16:16:58 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 82291 invoked by uid 500); 14 Sep 2006 16:16:58 -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 82280 invoked by uid 99); 14 Sep 2006 16:16:58 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 09:16:58 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=sebor@mymail.quovadx.com; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain mymail.quovadx.com from 208.30.140.160 cause and error) Received: from ([208.30.140.160:32213] helo=moroha.quovadx.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 1A/B0-06152-2EF79054 for ; Thu, 14 Sep 2006 09:15:41 -0700 Received: from qxvcexch01.ad.quovadx.com (qxvcexch01.ad.quovadx.com [192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id k8EGDoq2007167 for ; Thu, 14 Sep 2006 16:13:51 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 14 Sep 2006 10:14:33 -0600 Message-ID: <450988D7.30805@roguewave.com> Date: Thu, 14 Sep 2006 10:52:39 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: problem with config.h References: <18597F2B47F1394A9B309945EC72411282D5CB@servex01.wamas.com> In-Reply-To: <18597F2B47F1394A9B309945EC72411282D5CB@servex01.wamas.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 14 Sep 2006 16:14:33.0167 (UTC) FILETIME=[DD6275F0:01C6D818] X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Duft Markus wrote: > hey there! > > i have following problem: i'm writing a compiler wrapper (interix-wgcc, > on sourceforge) for which i want to use stdcxx as the default STL > implementation. the only problem is, that the config.h will conflict > with every single config.h generated by autotools managed packages. so i > for now did the following: > > i changed rw/_config.h to be [...] > the script is needed anyway, so for now this is not a too big problem, > but it would be really cool if config.h would be something else, like > rwstd_config.h or so... Yes, the name is far from ideal. I've been thinking about making it configurable, perhaps by replacing the _RWSTD_USE_CONFIG macro with _RWSTD_CONFIG=. The patch below has all the source changes necessary to make it work (the rest of the changes need to go in the makefiles and VisualStudio scripts). I suggest you create an enhancement request in Jira for this to help us remember to get it done. Martin Index: /build/sebor/stdcxx/include/rw/_config.h =================================================================== --- /build/sebor/stdcxx/include/rw/_config.h (revision 436919) +++ /build/sebor/stdcxx/include/rw/_config.h (working copy) @@ -31,7 +31,9 @@ #ifndef _RWSTD_RW_CONFIG_H_INCLUDED #define _RWSTD_RW_CONFIG_H_INCLUDED -#ifdef _RWSTD_USE_CONFIG +#ifdef _RWSTD_CONFIG +# include _RWSTD_CONFIG +#elif defined (_RWSTD_USE_CONFIG) # include #else # include