X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FBase.h;h=a90a67b98fb40db8aca32634a8289b2fbb249de7;hp=4613ea011d0e38a1904a34e79aba0d3b2f2a7a3c;hb=22ce9dc5b94b1a7cecf1527925092db0a5acc3aa;hpb=120db52c6db13e1726be90fddedd842190566a6e diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 4613ea011d..a90a67b98f 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -274,7 +274,7 @@ typedef CHAR8 *VA_LIST; @return A pointer to the structure from one of it's elements. **/ -#define _CR(Record, TYPE, Field) ((TYPE *) ((CHAR8 *) (Record) - (CHAR8 *) &(((TYPE *) 0)->Field))) +#define BASE_CR(Record, TYPE, Field) ((TYPE *) ((CHAR8 *) (Record) - (CHAR8 *) &(((TYPE *) 0)->Field))) /** Rounds a value up to the next boundary using a specified alignment.