Alexandre Julliard wrote:
Marcus Meissner marcus@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?
offsetof is ANSI C, see http://www.parallab.uib.no/SGI_bookshelves/SGI_Developer/books/CLanguageRef/... which states:
Recommended Practices
Follow these recommendations as you code:
... Use the offsetof() macro to derive structure member offsets. The offsetof() macro is in <stddef.h>.
Which platforms are still not ANSI C nowadays ?
Regards
Dominik