Play-/Source/offsetof_def.h
2007-12-01 04:08:34 +00:00

7 lines
197 B
C

#ifndef _OFFSETOF_DEF_H_
#define _OFFSETOF_DEF_H_
#undef offsetof
#define offsetof(a, b) (reinterpret_cast<uint8*>(&reinterpret_cast<a*>(0x10)->b) - reinterpret_cast<uint8*>(0x10))
#endif