X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FBrotliCustomDecompressLib%2Fcommon%2Ftypes.h;h=de25359e8a8f22cf5ee1fcd7be853517f492243c;hb=841b259062d5f71be41c7358217d3945038a37bf;hp=c6a37a6aac9944216d90c8eeee8239119067b30a;hpb=36ff6d80192515d7bac78706aa6ffa290f8643a8;p=mirror_edk2.git diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/common/types.h b/MdeModulePkg/Library/BrotliCustomDecompressLib/common/types.h index c6a37a6aac..de25359e8a 100644 --- a/MdeModulePkg/Library/BrotliCustomDecompressLib/common/types.h +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/common/types.h @@ -9,7 +9,13 @@ #ifndef BROTLI_COMMON_TYPES_H_ #define BROTLI_COMMON_TYPES_H_ -#include /* for size_t */ +//#include /* for size_t */ +#ifndef _SIZE_T_DEFINED +#if !defined(_WIN64) || defined(__GNUC__) +typedef unsigned int size_t; +#endif +#endif + #if defined(_MSC_VER) && (_MSC_VER < 1600) typedef __int8 int8_t; @@ -21,7 +27,15 @@ typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; typedef __int64 int64_t; #else -#include +//#include +typedef INT8 int8_t; +typedef INT16 int16_t; +typedef INT32 int32_t; +typedef INT64 int64_t; +typedef UINT8 uint8_t; +typedef UINT16 uint16_t; +typedef UINT32 uint32_t; +typedef UINT64 uint64_t; #endif /* defined(_MSC_VER) && (_MSC_VER < 1600) */ #if (!defined(_MSC_VER) || (_MSC_VER >= 1800)) && \