]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/BrotliCustomDecompressLib/common/types.h
MdeModulePkg: Add Brotli algorithm decompression library
[mirror_edk2.git] / MdeModulePkg / Library / BrotliCustomDecompressLib / common / types.h
index c6a37a6aac9944216d90c8eeee8239119067b30a..de25359e8a8f22cf5ee1fcd7be853517f492243c 100644 (file)
@@ -9,7 +9,13 @@
 #ifndef BROTLI_COMMON_TYPES_H_\r
 #define BROTLI_COMMON_TYPES_H_\r
 \r
-#include <stddef.h>  /* for size_t */\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
+\r
 \r
 #if defined(_MSC_VER) && (_MSC_VER < 1600)\r
 typedef __int8 int8_t;\r
@@ -21,7 +27,15 @@ typedef unsigned __int32 uint32_t;
 typedef unsigned __int64 uint64_t;\r
 typedef __int64 int64_t;\r
 #else\r
-#include <stdint.h>\r
+//#include <stdint.h>\r
+typedef INT8     int8_t;\r
+typedef INT16    int16_t;\r
+typedef INT32    int32_t;\r
+typedef INT64    int64_t;\r
+typedef UINT8    uint8_t;\r
+typedef UINT16   uint16_t;\r
+typedef UINT32   uint32_t;\r
+typedef UINT64   uint64_t;\r
 #endif  /* defined(_MSC_VER) && (_MSC_VER < 1600) */\r
 \r
 #if (!defined(_MSC_VER) || (_MSC_VER >= 1800)) && \\r