2015-04-03 04:50:57 +02:00
|
|
|
/** @file
|
|
|
|
LZMA UEFI header file
|
|
|
|
|
|
|
|
Allows LZMA code to build under UEFI (edk2) build environment
|
|
|
|
|
|
|
|
Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:05:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2015-04-03 04:50:57 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __UEFILZMA_H__
|
|
|
|
#define __UEFILZMA_H__
|
|
|
|
|
|
|
|
#include <Uefi.h>
|
|
|
|
#include <Library/BaseMemoryLib.h>
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
2021-12-05 23:54:02 +01:00
|
|
|
#undef _WIN32
|
2015-04-03 04:50:57 +02:00
|
|
|
#endif
|
|
|
|
|
2019-11-12 09:47:44 +01:00
|
|
|
typedef UINTN size_t;
|
2015-04-03 04:50:57 +02:00
|
|
|
|
|
|
|
#ifdef _WIN64
|
2021-12-05 23:54:02 +01:00
|
|
|
#undef _WIN64
|
2015-04-03 04:50:57 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _PTRDIFF_T_DEFINED
|
|
|
|
typedef int ptrdiff_t;
|
|
|
|
#endif
|
|
|
|
|
2021-12-05 23:54:02 +01:00
|
|
|
#define memcpy CopyMem
|
|
|
|
#define memmove CopyMem
|
2015-04-03 04:50:57 +02:00
|
|
|
|
|
|
|
#define _LZMA_SIZE_OPT
|
|
|
|
|
|
|
|
#endif // __UEFILZMA_H__
|