Subject: Re: commit: [was: Windows need strlen declaration]
From: Aaron Lehmann (aaronl@vitelus.com)
Date: Sat Jun 09 2001 - 15:09:02 CDT
On Sat, Jun 09, 2001 at 07:39:54PM +0200, Mike Nordell wrote:
> Oh, isn't that a clear violation of the ISO standard (OK, ANSI is implied)?
ANSI isn't implied. By default, a few gcc extensions are allowed.
Those that conflict with the standards can be turned off with the
-ansi flag.
As of gcc 3.0, which is currently in beta, calling strlen without
including <string.h> gives an "implicit declaration" warning (unless
you use -Werror, in which case it is an error). IMHO this is the
correct behavior.
This archive was generated by hypermail 2b25 : Sat Jun 09 2001 - 15:09:27 CDT