From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.20; helo=mga02.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D2531222A54C7 for ; Tue, 2 Jan 2018 21:53:54 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jan 2018 21:58:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,500,1508828400"; d="scan'208";a="7023229" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 02 Jan 2018 21:58:56 -0800 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 2 Jan 2018 21:58:52 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 2 Jan 2018 21:58:52 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Wed, 3 Jan 2018 13:58:49 +0800 From: "Gao, Liming" To: "Zhu, Yonghong" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [Patch] BaseTools: Fix compile error on VS2010 Thread-Index: AQHThFaHA2ZccDD/TEmdA8pxZuGAsaNhpyfw Date: Wed, 3 Jan 2018 05:58:48 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E19DABD@SHSMSX104.ccr.corp.intel.com> References: <1514958506-6872-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1514958506-6872-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] BaseTools: Fix compile error on VS2010 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jan 2018 05:53:55 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao >-----Original Message----- >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >Yonghong Zhu >Sent: Wednesday, January 03, 2018 1:48 PM >To: edk2-devel@lists.01.org >Subject: [edk2] [Patch] BaseTools: Fix compile error on VS2010 > >VS2010 also defined RSIZE_MAX, so we undef it first. > >Contributed-under: TianoCore Contribution Agreement 1.1 >Signed-off-by: Yonghong Zhu >--- > BaseTools/Source/C/Common/CommonLib.h | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > >diff --git a/BaseTools/Source/C/Common/CommonLib.h >b/BaseTools/Source/C/Common/CommonLib.h >index 9da16e8..dccb192 100644 >--- a/BaseTools/Source/C/Common/CommonLib.h >+++ b/BaseTools/Source/C/Common/CommonLib.h >@@ -1,9 +1,9 @@ > /** @file > Common library assistance routines. > >-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.
>+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
> This program and the accompanying materials > are licensed and made available under the terms and conditions of the BSD >License > which accompanies this distribution. The full text of the license may be= found >at > http://opensource.org/licenses/bsd-license.php > >@@ -26,13 +26,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY >KIND, EITHER EXPRESS OR IMPLIED. > #define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL) > #define MAX_UINT16 ((UINT16)0xFFFF) > #define MAX_UINT8 ((UINT8)0xFF) > #define ARRAY_SIZE(Array) (sizeof (Array) / sizeof ((Array)[0])) > #define ASCII_RSIZE_MAX 1000000 >-#ifndef RSIZE_MAX >+#undef RSIZE_MAX > #define RSIZE_MAX 1000000 >-#endif > > #define IS_COMMA(a) ((a) =3D=3D L',') > #define IS_HYPHEN(a) ((a) =3D=3D L'-') > #define IS_DOT(a) ((a) =3D=3D L'.') > #define IS_LEFT_PARENTH(a) ((a) =3D=3D L'(') >-- >2.6.1.windows.1 > >_______________________________________________ >edk2-devel mailing list >edk2-devel@lists.01.org >https://lists.01.org/mailman/listinfo/edk2-devel