diff --git a/src/boot/efi/util.h b/src/boot/efi/util.h index 8a3e0520fc..3e6e610289 100644 --- a/src/boot/efi/util.h +++ b/src/boot/efi/util.h @@ -5,6 +5,7 @@ #include #define ELEMENTSOF(x) (sizeof(x)/sizeof((x)[0])) +#define OFFSETOF(x,y) ((UINTN) &(((x*)0)->y)) static inline const CHAR16 *yes_no(BOOLEAN b) { return b ? L"yes" : L"no";