1 /** @file
2   LZMA UEFI header file
3 
4   Allows LZMA code to build under UEFI (edk2) build environment
5 
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
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 #ifndef _SIZE_T_DEFINED
28 #if !defined(_WIN64) || defined(__GNUC__)
29 typedef unsigned int size_t;
30 #endif
31 #endif
32 
33 #ifdef _WIN64
34 #undef _WIN64
35 #endif
36 
37 #ifndef _PTRDIFF_T_DEFINED
38 typedef int ptrdiff_t;
39 #endif
40 
41 #define memcpy CopyMem
42 #define memmove CopyMem
43 
44 #define _LZMA_SIZE_OPT
45 
46 #endif // __UEFILZMA_H__
47 
48