branch | RCL_3 |
changeset 15 | 18da5738c9b6 |
parent 0 | e4d67989cc36 |
child 45 | 4b03adbd26ca |
--- 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 <size_t> \ - (&reinterpret_cast <const volatile char &> \ - (static_cast<type *> (0)->field))) +#define __offsetof(type, field) ((size_t)(&((type *)0)->field)) #endif #endif