|
From: Dirk M. <dm...@gm...> - 2007-05-03 13:10:59
|
On Tuesday, 1. May 2007, sv...@va... wrote: > /* This is so useful it should be visible absolutely everywhere. */ > #if !defined(offsetof) > -# define offsetof(type,memb) ((Int)&((type*)0)->memb) > +# define offsetof(type,memb) ((Int)(HWord)&((type*)0)->memb) > #endif how about using __builtin_offsetof instead if its gcc? Dirk |