From nobody Wed May 1 13:27:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+50452+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+50452+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1573548487; cv=none; d=zoho.com; s=zohoarc; b=dYpfuh3OW6Y41UMxLkbYklzqyJDAneUIvhyAihKQNXUWfOo/oBouZozmiijYGu/YG9UZD/rIzyXbRkOJmBcod3sogUVjEUb/U7jUh4IDUvb72Lr+5EpKB4vcuB5u6O4jtOlZLQqjUF4Gsb2gpcCmPNenjcZFy5Q3b9Cv9Yz/jII= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573548487; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=MIwTRNRyZNybsowWgqtiuYnC+LyOPv3l5vwPf1I3o7c=; b=nmWaHtSOPTy6OvQcpjSdHbivaSdPAgZpxox1NDO7NmUgbdvREY2n0afPT47lfgXHkhgHQi0GkwIQgcka9/5sE4Qw9428bfmbp9yUqPDInn+Z0K3xQg9PSE5Z5n3BkY9hjdErwJpgFDGRzr/p9xqpjRLphxVdTex1i8Ct6vjBzUU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+50452+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1573548487541528.6689118144377; Tue, 12 Nov 2019 00:48:07 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id gmwUYY1788612xyEYuyqSOkw; Tue, 12 Nov 2019 00:48:05 -0800 X-Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web12.8987.1573548484057169806 for ; Tue, 12 Nov 2019 00:48:04 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Nov 2019 00:48:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,295,1569308400"; d="scan'208";a="229267398" X-Received: from fieedk002.ccr.corp.intel.com ([10.239.158.170]) by fmsmga004.fm.intel.com with ESMTP; 12 Nov 2019 00:48:03 -0800 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu Subject: [edk2-devel] [PATCH] MdeModulePkg: Unify the definitions of size_t Date: Tue, 12 Nov 2019 16:47:44 +0800 Message-Id: <20191112084744.19132-1-zhiguang.liu@intel.com> 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,zhiguang.liu@intel.com X-Gm-Message-State: YSawOqCyMsaMaqcQmOYwwSoIx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1573548485; bh=RTXNUoeeLUeQLzDRu5WGDN9P2n3URmnGqD0Y8mmp14I=; h=Cc:Date:From:Reply-To:Subject:To; b=fOsuxz6NE37drZqbCVADELXpmJDhyCCyY0ogvZGHcbyYUMl9t+GM3O/wF0kHQVGTLaJ /QCqBDUSNL53XM6ZRexDueL386wCcs50D4JZc9ZYvR4wAqfA04cUca0Cg29CdsYj9QfE9 A7weWpY6mK0tRQsIjj5imdUl2FsNFlSsfjE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2338 Cc: Jian J Wang Cc: Hao A Wu Signed-off-by: Zhiguang Liu Reviewed-by: Liming Gao --- 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_ =20 //#include /* for size_t */ -#ifndef _SIZE_T_DEFINED -#if !defined(_WIN64) || defined(__GNUC__) -typedef unsigned int size_t; -#endif -#endif +typedef UINTN size_t; =20 #if defined(_MSC_VER) && (_MSC_VER < 1600) typedef __int8 int8_t; diff --git a/MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h b/MdeM= odulePkg/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 =20 -#ifndef _SIZE_T_DEFINED -#if !defined(_WIN64) || defined(__GNUC__) -typedef unsigned int size_t; -#endif -#endif +typedef UINTN size_t; =20 #ifdef _WIN64 #undef _WIN64 --=20 2.16.2.windows.1 -=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 (#50452): https://edk2.groups.io/g/devel/message/50452 Mute This Topic: https://groups.io/mt/54164407/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-