From owner-freebsd-current Sun Feb 9 20:16:12 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DECB37B401 for ; Sun, 9 Feb 2003 20:16:11 -0800 (PST) Received: from opiate.thirteenandtwo.org (CPE0030ab0ef2bb-CM014490123332.cpe.net.cable.rogers.com [24.103.202.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3079243F85 for ; Sun, 9 Feb 2003 20:15:19 -0800 (PST) (envelope-from munish@opiate.thirteenandtwo.org) Received: by opiate.thirteenandtwo.org (Postfix, from userid 1001) id 1EE08E6; Sun, 9 Feb 2003 23:15:18 -0500 (EST) Date: Sun, 9 Feb 2003 23:15:18 -0500 From: Munish Chopra To: freebsd-current@FreeBSD.ORG Subject: Re: C conformance. Message-ID: <20030210041518.GC19060@opiate.thirteenandtwo.org> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <3E46A15A.3090909@gmx.net> <3E4718C3.EB0A28E4@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E4718C3.EB0A28E4@mindspring.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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