From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web12.15.1573693243347451672 for ; Wed, 13 Nov 2019 17:00:43 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: liming.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2019 17:00:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,302,1569308400"; d="scan'208";a="207629834" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 13 Nov 2019 17:00:42 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 13 Nov 2019 17:00:42 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 13 Nov 2019 17:00:41 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.127]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.149]) with mapi id 14.03.0439.000; Thu, 14 Nov 2019 09:00:40 +0800 From: "Liming Gao" To: "devel@edk2.groups.io" , "Liu, Zhiguang" CC: "Wang, Jian J" , "Wu, Hao A" Subject: Re: [edk2-devel] [PATCH] MdeModulePkg: Unify the definitions of size_t Thread-Topic: [edk2-devel] [PATCH] MdeModulePkg: Unify the definitions of size_t Thread-Index: AQHVmTXqrJqYCEHGakyWsF+re3IAlaeJ224Q Date: Thu, 14 Nov 2019 01:00:39 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E5406AA@SHSMSX104.ccr.corp.intel.com> References: <20191112084744.19132-1-zhiguang.liu@intel.com> In-Reply-To: <20191112084744.19132-1-zhiguang.liu@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 Return-Path: liming.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao >-----Original Message----- >From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of >Zhiguang Liu >Sent: Tuesday, November 12, 2019 4:48 PM >To: devel@edk2.groups.io >Cc: Wang, Jian J ; Wu, Hao A >Subject: [edk2-devel] [PATCH] MdeModulePkg: Unify the definitions of size= _t > >REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2338 > >Cc: Jian J Wang > >Cc: Hao A Wu > >Signed-off-by: Zhiguang Liu >--- > MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/types.h | 6 +----- > MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h | 6 +----- > 2 files changed, 2 insertions(+), 10 deletions(-) > >diff --git >a/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/types.h >b/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/types.h >index 2867d206f7..35c9569642 100644 >--- a/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/types.h >+++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/types.h >@@ -13,11 +13,7 @@ > #define BROTLI_COMMON_TYPES_H_ > > //#include /* for size_t */ >-#ifndef _SIZE_T_DEFINED >-#if !defined(_WIN64) || defined(__GNUC__) >-typedef unsigned int size_t; >-#endif >-#endif >+typedef UINTN size_t; > > #if defined(_MSC_VER) && (_MSC_VER < 1600) > typedef __int8 int8_t; >diff --git a/MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h >b/MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h >index cbdecd377b..e1315b6ec3 100644 >--- a/MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h >+++ b/MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h >@@ -18,11 +18,7 @@ > #undef _WIN32 > #endif > >-#ifndef _SIZE_T_DEFINED >-#if !defined(_WIN64) || defined(__GNUC__) >-typedef unsigned int size_t; >-#endif >-#endif >+typedef UINTN size_t; > > #ifdef _WIN64 > #undef _WIN64 >-- >2.16.2.windows.1 > > >