2009-05-01 02:28:19 +02:00
|
|
|
/** @file
|
2009-06-25 10:40:49 +02:00
|
|
|
LZMA UEFI header file
|
2009-05-01 02:28:19 +02:00
|
|
|
|
|
|
|
Allows LZMA code to build under UEFI (edk2) build environment
|
|
|
|
|
2010-04-23 18:28:26 +02:00
|
|
|
Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:03:59 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2009-05-01 02:28:19 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __UEFILZMA_H__
|
|
|
|
#define __UEFILZMA_H__
|
|
|
|
|
|
|
|
#include <Uefi.h>
|
|
|
|
#include <Library/BaseMemoryLib.h>
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#undef _WIN32
|
|
|
|
#endif
|
|
|
|
|
2009-08-05 23:11:56 +02:00
|
|
|
#ifndef _SIZE_T_DEFINED
|
2009-05-01 02:28:19 +02:00
|
|
|
#if !defined(_WIN64) || defined(__GNUC__)
|
|
|
|
typedef unsigned int size_t;
|
|
|
|
#endif
|
2009-08-05 23:11:56 +02:00
|
|
|
#endif
|
2009-05-01 02:28:19 +02:00
|
|
|
|
|
|
|
#ifdef _WIN64
|
|
|
|
#undef _WIN64
|
|
|
|
#endif
|
|
|
|
|
2009-08-05 23:11:56 +02:00
|
|
|
#ifndef _PTRDIFF_T_DEFINED
|
2009-05-01 02:28:19 +02:00
|
|
|
typedef int ptrdiff_t;
|
2009-08-05 23:11:56 +02:00
|
|
|
#endif
|
2009-05-01 02:28:19 +02:00
|
|
|
|
|
|
|
#define memcpy CopyMem
|
|
|
|
#define memmove CopyMem
|
|
|
|
|
2009-05-04 22:00:04 +02:00
|
|
|
#define _LZMA_SIZE_OPT
|
|
|
|
|
2009-05-01 02:28:19 +02:00
|
|
|
#endif // __UEFILZMA_H__
|
|
|
|
|