From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=203.199.198.232; helo=imsva.in.megatrends.com; envelope-from=karunakarp@amiindia.co.in; receiver=edk2-devel@lists.01.org Received: from IMSVA.IN.MEGATRENDS.COM (Webmail.amiindia.co.in [203.199.198.232]) (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 248092034D81D for ; Tue, 7 Nov 2017 02:53:02 -0800 (PST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E41F82047; Tue, 7 Nov 2017 16:30:01 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 10C4082046; Tue, 7 Nov 2017 16:30:01 +0530 (IST) Received: from webmail.amiindia.co.in (venus2.in.megatrends.com [10.0.0.7]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS; Tue, 7 Nov 2017 16:30:01 +0530 (IST) Received: from VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5]) by Venus2.in.megatrends.com ([fe80::2002:4a07:4f17:c09b%14]) with mapi id 14.03.0248.002; Tue, 7 Nov 2017 16:26:59 +0530 From: Karunakar P To: "'Gao, Liming'" , '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//+kkoD//wwmkIABpMmA//+YGQD/+T42UAGtMliA//48DRA= Date: Tue, 7 Nov 2017 10:56:59 +0000 Message-ID: References: <015701d3538a$c2c92230$485b6690$@insyde.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E1775A1@SHSMSX104.ccr.corp.intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E178D9F@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E178D9F@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.84.111] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1600-8.1.0.1062-23446.006 X-TM-AS-Result: No--26.220-5.0-31-10 X-imss-scan-details: No--26.220-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.1.1062-23446.006 X-TMASE-Result: 10--26.220200-10.000000 X-TMASE-MatchedRID: QW5G6BKkLToL5FL4KHzZKbxygpRxo469Ud7Bjfo+5jSOtR/F4zYXtCTC VwyY5KnUHVBcT6AmVcfTyEdhHVc8nOXzBBRraVbPA9lly13c/gES12tj9Zvd84fAYSb4KlgZJZ3 D0zKPh7Gcdt621J33V2uQ7Ro4lHrcw+noLBygYTj7wA705wn+b9aXm/w1hfBOp+cg3PT8JVz0Zt JJqrR/g3jHQdmwc3rmlhEPkSRcxnjV117NWfL5Aqm4PbloS2C3+KgiyLtJrSDnU40jhQv76qPFj JEFr+ol4Z/vCGGy3v6nmxwscwVeE0lXctromFFi+gtHj7OwNO0CpgETeT0ynA== X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0,39:0-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: Tue, 07 Nov 2017 10:53:03 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable It works Fine. Are you going to check in this changes, could you please let us know the pl= an? -----Original Message----- From: Gao, Liming [mailto:liming.gao@intel.com]=20 Sent: Monday, November 06, 2017 6:59 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 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 #end= if #endif > -----Original Message----- > From: Karunakar P [mailto:karunakarp@amiindia.co.in] > Sent: Monday, November 6, 2017 5:32 PM > To: Gao, Liming ; 'Tim Lewis'=20 > ; 'edk2-devel@lists.01.org'=20 > > Cc: Ye, Ting ; Fu, Siyuan ;=20 > Wu, Jiaxin > 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=20 > > Of Karunakar P > > Sent: Thursday, November 2, 2017 8:32 PM > > To: 'Tim Lewis' ; edk2-devel@lists.01.org > > Cc: Ye, Ting ; Fu, Siyuan ;=20 > > 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=20 > > Of Karunakar P > > Sent: Wednesday, November 1, 2017 8:27 PM > > To: 'edk2-devel@lists.01.org' > > Cc: 'Ye, Ting' ; 'Fu, Siyuan'=20 > > ; '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=20 > > treated as error - no 'object' file generated > > e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro=20 > > 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