]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h
Reviewed the code comments in the Include/Protocol directory for typos, grammar issue...
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / LzmaCustomDecompressLib / UefiLzma.h
1 /** @file
2 LZMA UEFI Library header file
3
4 Allows LZMA code to build under UEFI (edk2) build environment
5
6 Copyright (c) 2009, Intel Corporation<BR>
7 All rights reserved. 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
11
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.
14
15 **/
16
17 #ifndef __UEFILZMA_H__
18 #define __UEFILZMA_H__
19
20 #include <Uefi.h>
21 #include <Library/BaseMemoryLib.h>
22
23 #ifdef _WIN32
24 #undef _WIN32
25 #endif
26
27 #if !defined(_WIN64) || defined(__GNUC__)
28 typedef unsigned int size_t;
29 #endif
30
31 #ifdef _WIN64
32 #undef _WIN64
33 #endif
34
35 typedef int ptrdiff_t;
36
37 #define memcpy CopyMem
38 #define memmove CopyMem
39
40 #define _LZMA_SIZE_OPT
41
42 #endif // __UEFILZMA_H__
43