]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h
MdeModulePkg/S3SmmInitDone.h: Fix copyright coding style error.
[mirror_edk2.git] / MdeModulePkg / Library / LzmaCustomDecompressLib / UefiLzma.h
CommitLineData
11ff2c71
LG
1/** @file\r
2 LZMA UEFI header file\r
3\r
4 Allows LZMA code to build under UEFI (edk2) build environment\r
5\r
6 Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
7 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
27#ifndef _SIZE_T_DEFINED\r
28#if !defined(_WIN64) || defined(__GNUC__)\r
29typedef unsigned int size_t;\r
30#endif\r
31#endif\r
32\r
33#ifdef _WIN64\r
34#undef _WIN64\r
35#endif\r
36\r
37#ifndef _PTRDIFF_T_DEFINED\r
38typedef int ptrdiff_t;\r
39#endif\r
40\r
41#define memcpy CopyMem\r
42#define memmove CopyMem\r
43\r
44#define _LZMA_SIZE_OPT\r
45\r
46#endif // __UEFILZMA_H__\r
47\r