PATCH: use standard offsetof()

Marcus Meissner meissner at suse.de
Tue Sep 7 11:52:31 CDT 2004


On Tue, Sep 07, 2004 at 09:35:15AM -0700, Alexandre Julliard wrote:
> Marcus Meissner <marcus at jet.franken.de> writes:
> 
> > gcc 3.5 no longer likes our own OFFSETOF() macro in winebuild, so we should
> > use the standard one from <stddef.h>
> 
> Not all platforms have offsetof (or even stddef.h). What's wrong with
> our definition?

Apparently it is a GNU extension which got dropped from the new compiler.

GCC Bugzilla discussion is here.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17339

I am not really happy either about it.

Ciao, Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040907/5873f1b4/attachment.pgp


More information about the wine-devel mailing list