From owner-freebsd-hackers Tue Aug 28 0:30:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from robin.mail.pas.earthlink.net (robin.mail.pas.earthlink.net [207.217.120.65]) by hub.freebsd.org (Postfix) with ESMTP id C7D2637B403 for ; Tue, 28 Aug 2001 00:30:19 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.143.233.Dial1.SanJose1.Level3.net [209.245.143.233]) by robin.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f7S7UIo22354; Tue, 28 Aug 2001 00:30:18 -0700 (PDT) Message-ID: <3B8B48B4.9D749335@mindspring.com> Date: Tue, 28 Aug 2001 00:31:00 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Mark D. Anderson" Cc: freebsd-hackers@freebsd.org, Charles Randall Subject: Re: Portability of #warning in /usr/include References: <08e601c12f62$c48b79a0$6c456420@mdaxke> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Mark D. Anderson" wrote: > > This may not work. > >... > > Some of those compilers > > would NOT let you '#ifdef' out the version that it did not recognize > > (perhaps thinking that '#warn' or '#warning' might be some gross typo > > for '#else' or '#endif', I guess...). > > this is true; some compilers seem to require that #ifdef'd out code > be syntactically correct. This can be handled by using an external preprocessor, before handing the code to the compiler. From my recollection, the only thing a preprocessor is required to pass through is #pragma directives. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message