MdePkg Base.h: Use correct style to check macro _MSC_VER value

Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Liming Gao 2020-02-03 16:20:48 +08:00 committed by mergify[bot]
parent 21821933ae
commit 8778ee616a
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
// if the /OPT:REF linker option is used. We defined a macro as this is a // if the /OPT:REF linker option is used. We defined a macro as this is a
// a non standard extension // a non standard extension
// //
#if defined(_MSC_EXTENSIONS) && _MSC_VER < 1800 && !defined (MDE_CPU_EBC) #if defined(_MSC_VER) && _MSC_VER < 1800 && !defined (MDE_CPU_EBC)
/// ///
/// Remove global variable from the linked image if there are no references to /// Remove global variable from the linked image if there are no references to
/// it after all compiler and linker optimizations have been performed. /// it after all compiler and linker optimizations have been performed.

View File

@ -87,7 +87,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
// //
#pragma warning ( disable : 4206 ) #pragma warning ( disable : 4206 )
#if _MSC_VER == 1800 || _MSC_VER == 1900 || _MSC_VER >= 1910 #if defined(_MSC_VER) && _MSC_VER >= 1800
// //
// Disable these warnings for VS2013. // Disable these warnings for VS2013.

View File

@ -101,7 +101,7 @@
// //
#pragma warning ( disable : 4206 ) #pragma warning ( disable : 4206 )
#if _MSC_VER == 1800 || _MSC_VER == 1900 || _MSC_VER >= 1910 #if defined(_MSC_VER) && _MSC_VER >= 1800
// //
// Disable these warnings for VS2013. // Disable these warnings for VS2013.