]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Unify the definitions of size_t
authorZhiguang Liu <zhiguang.liu@intel.com>
Tue, 12 Nov 2019 08:47:44 +0000 (16:47 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 15 Nov 2019 02:06:12 +0000 (02:06 +0000)
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2338

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/types.h
MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h

index 2867d206f78712fe8f8ca6a8ae01bed6306d4890..35c95696423ea78376ababf7e90912c8ecb340c2 100644 (file)
 #define BROTLI_COMMON_TYPES_H_\r
 \r
 //#include <stddef.h>  /* for size_t */\r
-#ifndef _SIZE_T_DEFINED\r
-#if !defined(_WIN64) || defined(__GNUC__)\r
-typedef unsigned int size_t;\r
-#endif\r
-#endif\r
+typedef UINTN size_t;\r
 \r
 #if defined(_MSC_VER) && (_MSC_VER < 1600)\r
 typedef __int8 int8_t;\r
index cbdecd377bc24a31cf971e335a4da7783768afac..e1315b6ec33ce4ca81243c59e1853438ed0493d3 100644 (file)
 #undef _WIN32\r
 #endif\r
 \r
-#ifndef _SIZE_T_DEFINED\r
-#if !defined(_WIN64) || defined(__GNUC__)\r
-typedef unsigned int size_t;\r
-#endif\r
-#endif\r
+typedef UINTN size_t;\r
 \r
 #ifdef _WIN64\r
 #undef _WIN64\r