INT_MAX undeclared / limits.h (was: Re: Fedora i386 rawhide rebuild in mock status 2008-02-09)

Benjamin Kreuter ben.kreuter at gmail.com
Wed Feb 13 17:23:46 UTC 2008


On Wednesday 13 February 2008 11:49:08 Till Maas wrote:
>
> Is this really a bug in aireplay-ng, i.e. does it have to include limits.h
> where INT_MAX comes from, or is this a bug in some other package? Why was
> it not needed to include limits.h earlier, any ideas?
>
> Regards,
> Till

GCC4.3 introduces a new header structure that is meant to be more streamlined, 
and therefore more efficient for the preprocessor step of compiling.  This 
means that headers that were once implicitly included (like limits.h) are not 
included anymore, unless they absolutely have to.  Although this is somewhat 
unusual, it is entirely compliant with the C99 and C++98/TR1 standards, and 
it is always a best practice to explicitly include headers.

GCC4.2 had a lot of implicit inclusions, as did earlier versions.  Although it 
is a poor way to write code, a lot of programmers relied on these implicit 
inclusions, and so the migration path to GCC4.3 may be a little rough.

-- Benjamin Kreuter



-- 
Message sent on: Wed Feb 13 12:19:31 EST 2008
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080213/5f6ef4df/attachment.sig>


More information about the fedora-devel-list mailing list