Re: PATCH: use standard offsetof()

2004-09-08 Thread Alexandre Julliard
Dominik Strasser <[EMAIL PROTECTED]> writes: > Follow these recommendations as you code: > > ... >Use the offsetof() macro to derive structure member > offsets. The offsetof() macro is in . > > > Which platforms are still not ANSI C nowadays ? I don't know about nowadays, but I know we en

Re: PATCH: use standard offsetof()

2004-09-08 Thread Dominik Strasser
Alexandre Julliard wrote: Marcus Meissner <[EMAIL PROTECTED]> writes: gcc 3.5 no longer likes our own OFFSETOF() macro in winebuild, so we should use the standard one from Not all platforms have offsetof (or even stddef.h). What's wrong with our definition? offsetof is ANSI C, see http://www.par

Re: PATCH: use standard offsetof()

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

Re: PATCH: use standard offsetof()

2004-09-07 Thread Alexandre Julliard
Marcus Meissner <[EMAIL PROTECTED]> writes: > gcc 3.5 no longer likes our own OFFSETOF() macro in winebuild, so we should > use the standard one from Not all platforms have offsetof (or even stddef.h). What's wrong with our definition? -- Alexandre Julliard [EMAIL PROTECTED]