From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18001 invoked by alias); 28 Jul 2005 16:16:28 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 17917 invoked by uid 22791); 28 Jul 2005 16:16:24 -0000 Received: from exprod6og4.obsmtp.com (HELO psmtp.com) (64.18.1.124) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 28 Jul 2005 16:16:24 +0000 Received: from source ([192.150.20.142]) by exprod6ob4.obsmtp.com ([64.18.5.12]) with SMTP; Thu, 28 Jul 2005 09:16:21 PDT Received: from inner-relay-3.eur.adobe.com (inner-relay-3b [10.128.4.236]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id j6SGMSTK029502 for ; Thu, 28 Jul 2005 09:22:28 -0700 (PDT) Received: from iplan-mn (iplan-mn.corp.adobe.com [10.32.16.20]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id j6SGGFiw000027 for ; Thu, 28 Jul 2005 09:16:19 -0700 (PDT) Received: from iplan-mn (localhost [127.0.0.1]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0IKC00ESVIJ2OR@iplan-mn.corp.adobe.com> for gcc-help@gcc.gnu.org; Thu, 28 Jul 2005 11:16:14 -0500 (CDT) Received: from [10.32.16.88] (mn-eljay.corp.adobe.com [10.32.16.88]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0IKC00EL2IJ1OL@iplan-mn.corp.adobe.com> for gcc-help@gcc.gnu.org; Thu, 28 Jul 2005 11:16:14 -0500 (CDT) Date: Thu, 28 Jul 2005 16:16:00 -0000 From: Eljay Love-Jensen Subject: Re: Single line conditional compiles In-reply-to: <42E91D4D.22097.1B3092F9@localhost> To: gerritvn@gpvno.co.za, gcc-help@gcc.gnu.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT User-Agent: Microsoft-Entourage/11.1.0.040913 X-SW-Source: 2005-07/txt/msg00316.txt.bz2 Hi Gerrit, > I understand why it does not work - I am looking for a solution, not an explanation :) Well, that's good, because you saved me time explaining. :-) One solution is to run the preprocessor twice. The first time it does all the normal preprocessor things (pulling in the #include, expanding macros, yada yada yada), including embedding those now-invalid comments into the post-preprocessed output. The second time removes those introduced comments. Voila! --Eljay