Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2003 08:08:31 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Garrett Wollman <wollman@lcs.mit.edu>
Cc:        Craig Rodrigues <rodrigc@attbi.com>, freebsd-current@FreeBSD.ORG
Subject:   Re: #warning must be protected by #if __GNUC__ in headers?
Message-ID:  <3E6CB87F.B28DEE17@mindspring.com>
References:  <20030308161943.GA54921@attbi.com> <200303081728.h28HSDWM039984@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Wollman wrote:
> `#if __GNUC__' wouldn't help matters; every preprocessor has to read
> and interpret every preprocessor directive (so that `#else' and
> `#endif' can be recognized).

I thought that the other discussion had concluded that:

	#if 0
	...
	#else

Or:

	#if 0
	...
	#endif

Should ignore everything *except* "#else" or "#elif" or "#endif"?

I remember when GCC used to start "nethack" any time you used a
"#pragma" in an unprotected block, but not otherwise... ;^).

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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