From nobody Sat May 4 18:24:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+53648+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+53648+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1580718060426809.3278099132596; Mon, 3 Feb 2020 00:21:00 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id MPEHYY1788612xuGe8WDi1E0; Mon, 03 Feb 2020 00:21:00 -0800 X-Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web09.2589.1580718059646798406 for ; Mon, 03 Feb 2020 00:20:59 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Feb 2020 00:20:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,397,1574150400"; d="scan'208";a="225102043" X-Received: from lgao4-mobl.ccr.corp.intel.com ([10.255.28.202]) by fmsmga008.fm.intel.com with ESMTP; 03 Feb 2020 00:20:58 -0800 From: "Liming Gao" To: devel@edk2.groups.io Cc: Zhiguang Liu Subject: [edk2-devel] [Patch] MdePkg Base.h: Use correct style to check macro _MSC_VER value Date: Mon, 3 Feb 2020 16:20:48 +0800 Message-Id: <20200203082048.77-1-liming.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,liming.gao@intel.com X-Gm-Message-State: oP0iB4hxgvRyTM0rHAHJiDdkx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1580718060; bh=R6cOX4Wm+PVbUfZ000J2xwPM/tsCyYLAJl0iCuf7hRE=; h=Cc:Date:From:Reply-To:Subject:To; b=FN8jakZDGwuMnOjevHP6A0vSkJbof2rWu+8ykGkikVz3RzTe6Q5dVAvK4B5shHbtdGL uIfhdejfCTj/c7myFnphk4/Uk6C+Qf/yS6f9ecilir8ywbG7sd/c3SSfzGh0Pa3FvMlvz 2utpMC3js/Y2pPK1LS3loV2G+2MZj15Rq5E= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Signed-off-by: Zhiguang Liu Reviewed-by: Liming Gao --- MdePkg/Include/Base.h | 2 +- MdePkg/Include/Ia32/ProcessorBind.h | 2 +- MdePkg/Include/X64/ProcessorBind.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 321d729c04..8e5c7b0a00 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -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 // 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 referen= ces to /// it after all compiler and linker optimizations have been performed. diff --git a/MdePkg/Include/Ia32/ProcessorBind.h b/MdePkg/Include/Ia32/Proc= essorBind.h index fa4b7e8e98..9380380e57 100644 --- a/MdePkg/Include/Ia32/ProcessorBind.h +++ b/MdePkg/Include/Ia32/ProcessorBind.h @@ -87,7 +87,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent // #pragma warning ( disable : 4206 ) =20 -#if _MSC_VER =3D=3D 1800 || _MSC_VER =3D=3D 1900 || _MSC_VER >=3D 1910 +#if defined(_MSC_VER) && _MSC_VER >=3D 1800 =20 // // Disable these warnings for VS2013. diff --git a/MdePkg/Include/X64/ProcessorBind.h b/MdePkg/Include/X64/Proces= sorBind.h index 387e9c5c9c..5d14316524 100644 --- a/MdePkg/Include/X64/ProcessorBind.h +++ b/MdePkg/Include/X64/ProcessorBind.h @@ -101,7 +101,7 @@ // #pragma warning ( disable : 4206 ) =20 -#if _MSC_VER =3D=3D 1800 || _MSC_VER =3D=3D 1900 || _MSC_VER >=3D 1910 +#if defined(_MSC_VER) && _MSC_VER >=3D 1800 =20 // // Disable these warnings for VS2013. --=20 2.24.1.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#53648): https://edk2.groups.io/g/devel/message/53648 Mute This Topic: https://groups.io/mt/70941870/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-