Work around some annoying compiler grievances

I'm still having some trouble with the offsetof() definition, so just
nerf it to what stddef.h would say anyway.

Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2017-09-08 13:50:26 -04:00
parent 9802023c13
commit 1dc35a4fe0

View File

@ -200,7 +200,7 @@ typedef CHAR8 *VA_LIST;
For pre-Standard C compilers, here is a version that usually works
(but watch out!): */
#ifndef offsetof
#define offsetof(type, member) ( (UINTN) & ((type*)0) -> member )
#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
#endif
//