Dominik Strasser dominik.strasser@infineon.com writes:
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 ?
I don't know about nowadays, but I know we encountered that problem at some point. Anyway I have since changed the code to not require offsetof at all.