]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg LzmaCustomDecompressLib: Update macro to be same in CLANG tool
authorLiming Gao <liming.gao@intel.com>
Thu, 17 Oct 2019 06:55:50 +0000 (14:55 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 24 Oct 2019 01:41:32 +0000 (09:41 +0800)
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 <liming.gao@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h

index ac06278002e3f16b8120cc29d6db076a744d9cc0..c89b5c2433f1605c61327b9c42c73c87771fb2ef 100644 (file)
@@ -118,7 +118,7 @@ typedef int Bool;
 #define MY_STD_CALL\r
 #endif\r
 \r
-#ifdef _MSC_VER\r
+#if defined(_MSC_VER) && !defined(__clang__)\r
 \r
 #if _MSC_VER >= 1300\r
 #define MY_NO_INLINE __declspec(noinline)\r