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:
jljusten 2012-10-12 18:52:50 +00:00
parent d128191620
commit 2c3239f305
1 changed files with 1 additions and 1 deletions

View File

@ -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)