]>
Commit | Line | Data |
---|---|---|
306bf4e2 | 1 | /** @file\r |
182b1d16 | 2 | LZMA UEFI header file\r |
306bf4e2 | 3 | \r |
4 | Allows LZMA code to build under UEFI (edk2) build environment\r | |
5 | \r | |
6 | Copyright (c) 2009, Intel Corporation<BR>\r | |
7 | All rights reserved. This program and the accompanying materials\r | |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef __UEFILZMA_H__\r | |
18 | #define __UEFILZMA_H__\r | |
19 | \r | |
20 | #include <Uefi.h>\r | |
21 | #include <Library/BaseMemoryLib.h>\r | |
22 | \r | |
23 | #ifdef _WIN32\r | |
24 | #undef _WIN32\r | |
25 | #endif\r | |
26 | \r | |
772d3214 | 27 | #ifndef _SIZE_T_DEFINED\r |
306bf4e2 | 28 | #if !defined(_WIN64) || defined(__GNUC__)\r |
29 | typedef unsigned int size_t;\r | |
30 | #endif\r | |
772d3214 | 31 | #endif\r |
306bf4e2 | 32 | \r |
33 | #ifdef _WIN64\r | |
34 | #undef _WIN64\r | |
35 | #endif\r | |
36 | \r | |
772d3214 | 37 | #ifndef _PTRDIFF_T_DEFINED\r |
306bf4e2 | 38 | typedef int ptrdiff_t;\r |
772d3214 | 39 | #endif\r |
306bf4e2 | 40 | \r |
41 | #define memcpy CopyMem\r | |
42 | #define memmove CopyMem\r | |
43 | \r | |
19a4a0a0 | 44 | #define _LZMA_SIZE_OPT\r |
45 | \r | |
306bf4e2 | 46 | #endif // __UEFILZMA_H__\r |
47 | \r |