]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h
4 Allows LZMA code to build under UEFI (edk2) build environment
6 Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #ifndef __UEFILZMA_H__
18 #define __UEFILZMA_H__
21 #include <Library/BaseMemoryLib.h>
27 #ifndef _SIZE_T_DEFINED
28 #if !defined(_WIN64) || defined(__GNUC__)
29 typedef unsigned int size_t;
37 #ifndef _PTRDIFF_T_DEFINED
38 typedef int ptrdiff_t;
41 #define memcpy CopyMem
42 #define memmove CopyMem
44 #define _LZMA_SIZE_OPT
46 #endif // __UEFILZMA_H__