From: Liming Gao Date: Wed, 5 Jul 2017 05:57:07 +0000 (+0800) Subject: MdePkg: Declare _ReturnAddress() in Base.h for MSFT tool chain X-Git-Tag: edk2-stable201903~3808 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=ed6da357a30666cfccfd2539d88e6171710084b7 MdePkg: Declare _ReturnAddress() in Base.h for MSFT tool chain https://bugzilla.tianocore.org/show_bug.cgi?id=590 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Cc: Michael Kinney Reviewed-by: Star Zeng --- diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 21a603a903..02140a5ac2 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -1213,6 +1213,7 @@ typedef UINTN RETURN_STATUS; (SIGNATURE_32 (A, B, C, D) | ((UINT64) (SIGNATURE_32 (E, F, G, H)) << 32)) #if defined(_MSC_EXTENSIONS) && !defined (__INTEL_COMPILER) && !defined (MDE_CPU_EBC) + void * _ReturnAddress(void); #pragma intrinsic(_ReturnAddress) /** Get the return address of the calling function.