]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecUefiSupport.h
MdeModulePkg/BrotliCustomDecompressLib: Make brotli a submodule
[mirror_edk2.git] / MdeModulePkg / Library / BrotliCustomDecompressLib / BrotliDecUefiSupport.h
CommitLineData
58802e02
SZ
1/** @file\r
2 BROTLI UEFI header file for definitions\r
3\r
4 Allows BROTLI code to build under UEFI (edk2) build environment\r
5\r
6 Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
8\r
9**/\r
10\r
11#ifndef __BROTLI_DECOMPRESS_UEFI_SUP_H__\r
12#define __BROTLI_DECOMPRESS_UEFI_SUP_H__\r
13\r
14#include <Library/BaseLib.h>\r
15#include <Library/BaseMemoryLib.h>\r
16#include <Library/DebugLib.h>\r
17#define memcpy CopyMem\r
18#define memmove CopyMem\r
19#define memset(dest,ch,count) SetMem(dest,(UINTN)(count),(UINT8)(ch))\r
20#define malloc BrDummyMalloc\r
21#define free BrDummyFree\r
22\r
23typedef INT8 int8_t;\r
24typedef INT16 int16_t;\r
25typedef INT32 int32_t;\r
26typedef INT64 int64_t;\r
27typedef UINT8 uint8_t;\r
28typedef UINT16 uint16_t;\r
29typedef UINT32 uint32_t;\r
30typedef UINT64 uint64_t;\r
31typedef UINTN size_t;\r
32\r
33VOID *\r
34BrDummyMalloc (\r
35 IN size_t Size\r
36 );\r
37\r
38VOID\r
39BrDummyFree (\r
40 IN VOID * Ptr\r
41 );\r
42\r
43#endif\r