From owner-freebsd-current Sun Feb 9 19:14:39 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 612B037B401 for ; Sun, 9 Feb 2003 19:14:38 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id C329543FDF for ; Sun, 9 Feb 2003 19:14:37 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0195.cvx21-bradley.dialup.earthlink.net ([209.179.192.195] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18i4Oy-0003kn-00; Sun, 09 Feb 2003 19:14:36 -0800 Message-ID: <3E4718C3.EB0A28E4@mindspring.com> Date: Sun, 09 Feb 2003 19:13:07 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Marcin Dalecki Cc: freebsd-current@freebsd.org Subject: Re: C conformance. References: <3E46A15A.3090909@gmx.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a471fd554b54a2fd6bb8f47ce2e04de713667c3043c0873f7e350badd9bab72f9c350badd9bab72f9c 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 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). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message