Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2003 23:15:18 -0500
From:      Munish Chopra <mchopra@engmail.uwaterloo.ca>
To:        freebsd-current@FreeBSD.ORG
Subject:   Re: C conformance.
Message-ID:  <20030210041518.GC19060@opiate.thirteenandtwo.org>
In-Reply-To: <3E4718C3.EB0A28E4@mindspring.com>
References:  <3E46A15A.3090909@gmx.net> <3E4718C3.EB0A28E4@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-02-09 19:13 +0000, Terry Lambert wrote:
> Marcin Dalecki wrote:
> > Trying to use a compiler different from GCC I have found the folowing error
> > 
> > "/usr/include/sys/syslimits.h", line 42: Error:
> >    [ISO 6.8]: Unknown preprocessing directive, '#warning'.
> > 
> > I think that somthing like to above should not appear in system
> > headers.
> 
> It is an ANSI compliant preprocessor directive.  Please use an ANSI
> compliant compiler.
> 
> Have you actually looked at the line?  It's protected by
> "#if __GNUC__", so your compiler shouldn't be trying to interpret
> any directives other than "#else", "#elif", or "#endif" (or the
> premature end of the file).
> 

This is a known problem with the overaggressive preprocessor. Things
like this will get fixed as time permits, or new volunteers pop up :)

-- 
Munish Chopra

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?20030210041518.GC19060>