Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2001 00:31:00 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        "Mark D. Anderson" <mda@discerning.com>
Cc:        freebsd-hackers@freebsd.org, Charles Randall <crandall@matchlogic.com>
Subject:   Re: Portability of #warning in /usr/include
Message-ID:  <3B8B48B4.9D749335@mindspring.com>
References:  <08e601c12f62$c48b79a0$6c456420@mdaxke>

next in thread | previous in thread | raw e-mail | index | archive | help
"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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B8B48B4.9D749335>