mirror of https://github.com/acidanthera/audk.git
OvmfPkg: IndustryStandard/Virtio.h: use OFFSET_OF in OFFSET_OF_VHDR
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13838 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d128191620
commit
2c3239f305
|
@ -118,7 +118,7 @@ typedef struct {
|
|||
} VBLK_HDR;
|
||||
#pragma pack()
|
||||
|
||||
#define OFFSET_OF_VHDR(Field) ((UINTN)(UINT8 *)&((VBLK_HDR *) 0)->Field)
|
||||
#define OFFSET_OF_VHDR(Field) OFFSET_OF (VBLK_HDR, Field)
|
||||
#define SIZE_OF_VHDR(Field) (sizeof ((VBLK_HDR *) 0)->Field)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue