diff -r 3a3c1a7fa1e8 -r 18da5738c9b6 genericopenlibs/openenvcore/include/sys/cdefs.h --- a/genericopenlibs/openenvcore/include/sys/cdefs.h Mon Mar 15 12:46:24 2010 +0200 +++ b/genericopenlibs/openenvcore/include/sys/cdefs.h Thu Apr 01 00:15:09 2010 +0300 @@ -338,9 +338,7 @@ (__offsetof__ (type,field)) #endif #else -#define __offsetof(type, field) (reinterpret_cast \ - (&reinterpret_cast \ - (static_cast (0)->field))) +#define __offsetof(type, field) ((size_t)(&((type *)0)->field)) #endif #endif