From 9639c1f3e7f4f0d2df4072a60f754a9c43f2d784 Mon Sep 17 00:00:00 2001 From: Zhiguang Liu Date: Tue, 12 Nov 2019 16:47:44 +0800 Subject: [PATCH] MdeModulePkg: Unify the definitions of size_t REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2338 Cc: Jian J Wang Cc: Hao A Wu Signed-off-by: Zhiguang Liu Reviewed-by: Liming Gao --- .../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.39.2