fix FIELD_OFFSET macro

svn path=/trunk/; revision=37866
This commit is contained in:
Timo Kreuzer 2008-12-05 12:10:31 +00:00
parent 8156dcd959
commit 1f8539a65e

View file

@ -164,7 +164,7 @@ typedef unsigned long POINTER_64; // FIXME! HACK!!!
//
#ifndef FIELD_OFFSET
#define FIELD_OFFSET(Type, Field) \
((LONG) (&(((Type *) 0)->Field)))
((LONG_PTR) (&(((Type *) 0)->Field)))
#endif
//