Define BASE_CR as a duplicate of the _CR macro

Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Base.h#L867
the EDK2 uses BASE_CR and not _CR, so make sure gnu-efi defines it too.
This commit is contained in:
Pete Batard 2021-03-01 11:56:17 +00:00 committed by Nigel Croxon
parent 41e4d11d11
commit 6c77f27793

View File

@ -152,6 +152,11 @@ typedef struct _LIST_ENTRY {
#define _CR(Record, TYPE, Field) \
((TYPE *) ( (CHAR8 *)(Record) - (CHAR8 *) &(((TYPE *) 0)->Field)))
//
// EDK2 uses BASE_CR for the above
//
#define BASE_CR _CR
#if EFI_DEBUG
#define CR(Record, TYPE, Field, Sig) \
_CR(Record, TYPE, Field)->Signature != Sig ? \