Subject: Re: CVS commit: src/include
To: None <christos@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: source-changes
Date: 08/21/2006 09:56:10
On Aug 21, 2006, at 8:26 AM, Christos Zoulas wrote:

>
> Module Name:	src
> Committed By:	christos
> Date:		Mon Aug 21 15:26:49 UTC 2006
>
> Modified Files:
> 	src/include: stddef.h
>
> Log Message:
> gcc-3.3 does not have __offsetof__, but gcc-3.4 eems to require it:

Should be using the __GNUC_PREREQ__() macro for this.

>
>> From the redhat web page:
>
> http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gcc/offsetof.html
>
> __offsetof__ (expression)
>     is equivalent to the parenthesized expression, except that the
>     expression is considered an integral constant expression even if
>     it contains certain operators that are not normally permitted in
>     an integral constant expression. Users should never use  
> __offsetof__
>     directly; the only valid use of __offsetof__ is to implement the
>     offsetof macro in <stddef.h>.
>
>
> To generate a diff of this commit:
> cvs rdiff -r1.12 -r1.13 src/include/stddef.h
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.

-- thorpej