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.31; helo=mga06.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 C52932035D0E2 for ; Mon, 6 Nov 2017 05:24:49 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP; 06 Nov 2017 05:28:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,352,1505804400"; d="scan'208";a="332640511" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 06 Nov 2017 05:28:47 -0800 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 6 Nov 2017 05:28:47 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 6 Nov 2017 05:28:47 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by shsmsx102.ccr.corp.intel.com ([169.254.2.175]) with mapi id 14.03.0319.002; Mon, 6 Nov 2017 21:28:44 +0800 From: "Gao, Liming" To: Karunakar P , 'Tim Lewis' , "'edk2-devel@lists.01.org'" CC: "Ye, Ting" , "Fu, Siyuan" , "Wu, Jiaxin" Thread-Topic: [edk2] Build error in StdLib with VS 2015 compiler Thread-Index: AdNSLUs3X2g4GI21RFWk3iCTMy+5sABXRP8A//96qYCAAJe3AP//YMWAgADEwICABfF8gP//ONWg Date: Mon, 6 Nov 2017 13:28:43 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E178D9F@SHSMSX104.ccr.corp.intel.com> References: <015701d3538a$c2c92230$485b6690$@insyde.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E1775A1@SHSMSX104.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: Build error in StdLib with VS 2015 compiler X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2017 13:24:50 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable For VS2015, don't define it. The change is like below.=20 #ifndef __STDC_HOSTED__ #if !defined(_MSC_VER) || _MSC_VER !=3D 1900 #define __STDC_HOSTED__ 1 #endif #endif > -----Original Message----- > From: Karunakar P [mailto:karunakarp@amiindia.co.in] > Sent: Monday, November 6, 2017 5:32 PM > To: Gao, Liming ; 'Tim Lewis' ; 'edk2-devel@lists.01.org' > Cc: Ye, Ting ; Fu, Siyuan ; Wu, J= iaxin > Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler >=20 > What do you say... >=20 >=20 > Thanks, > Karunakar >=20 > -----Original Message----- > From: Karunakar P > Sent: Thursday, November 02, 2017 8:17 PM > To: 'Gao, Liming'; 'Tim Lewis'; edk2-devel@lists.01.org > Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin > Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler >=20 > Then it works fine. > But the problem is it may miss the backward compatibility with other comp= ilers. >=20 > I guess better to define as mentioned previously. >=20 > Thank You, > Karunakar >=20 > -----Original Message----- > From: Gao, Liming [mailto:liming.gao@intel.com] > Sent: Thursday, November 02, 2017 7:33 PM > To: Karunakar P; 'Tim Lewis'; edk2-devel@lists.01.org > Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin > Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler >=20 > Could you remove them, and build again? >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of = Karunakar P > > Sent: Thursday, November 2, 2017 8:32 PM > > To: 'Tim Lewis' ; edk2-devel@lists.01.org > > Cc: Ye, Ting ; Fu, Siyuan ; Wu,= Jiaxin > > Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler > > > > It is C only. > > > > -Karunakar > > > > -----Original Message----- > > From: Tim Lewis [mailto:tim.lewis@insyde.com] > > Sent: Thursday, November 02, 2017 8:59 AM > > To: Karunakar P; edk2-devel@lists.01.org > > Cc: 'Ye, Ting'; 'Fu, Siyuan'; 'Wu, Jiaxin' > > Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler > > > > Are you building C++ (.cpp)? Tim > > > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of = Karunakar P > > Sent: Wednesday, November 1, 2017 8:27 PM > > To: 'edk2-devel@lists.01.org' > > Cc: 'Ye, Ting' ; 'Fu, Siyuan' ;= 'Wu, Jiaxin' > > Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler > > > > Any comment on this? > > > > From: Karunakar P > > Sent: Tuesday, October 31, 2017 3:18 PM > > To: 'edk2-devel@lists.01.org' > > Cc: 'Wu, Jiaxin'; 'Fu, Siyuan'; 'Ye, Ting' > > Subject: Build error in StdLib with VS 2015 compiler > > > > Hello All, > > > > Facing an build error with Stdlib module when built with VS 2015 compil= er. > > > > e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning treate= d as error - no 'object' file generated > > e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro name '= __STDC_HOSTED__' is reserved, '#define' ignored > > > > below change resolving this error. Would you please review and provide = comments. > > > > #ifndef __STDC_HOSTED__ > > #define __STDC_HOSTED__ 1 > > #endif > > > > > > Thank You, > > Karunakar > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > > > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel