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
|
|
|
|
|
|
|
|
Copyright (c) 2009, Intel Corporation<BR>
|
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#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__
|
|
|
|
|