From: Liming Gao Date: Thu, 17 Oct 2019 06:55:50 +0000 (+0800) Subject: MdeModulePkg LzmaCustomDecompressLib: Update macro to be same in CLANG tool X-Git-Tag: edk2-stable201911~121 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=7d9ba361cc79dcba667bc3e2dc45ac0ef1756cbb MdeModulePkg LzmaCustomDecompressLib: Update macro to be same in CLANG tool BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1603 Define the same macro in the different OS. It can make CLANG generate the same image in the different host OS. Signed-off-by: Liming Gao Reviewed-by: Hao A Wu --- diff --git a/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h b/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h index ac06278002..c89b5c2433 100644 --- a/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h +++ b/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h @@ -118,7 +118,7 @@ typedef int Bool; #define MY_STD_CALL #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) #if _MSC_VER >= 1300 #define MY_NO_INLINE __declspec(noinline)