mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-06-12 15:28:50 +00:00
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:
parent
9802023c13
commit
1dc35a4fe0
@ -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
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user