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