Allows LZMA code to build under UEFI (edk2) build environment\r
\r
Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
#include <Library/BaseMemoryLib.h>\r
\r
#ifdef _WIN32\r
-#undef _WIN32\r
+ #undef _WIN32\r
#endif\r
\r
-#ifndef _SIZE_T_DEFINED\r
-#if !defined(_WIN64) || defined(__GNUC__)\r
-typedef unsigned int size_t;\r
-#endif\r
-#endif\r
+typedef UINTN size_t;\r
\r
#ifdef _WIN64\r
-#undef _WIN64\r
+ #undef _WIN64\r
#endif\r
\r
#ifndef _PTRDIFF_T_DEFINED\r
typedef int ptrdiff_t;\r
#endif\r
\r
-#define memcpy CopyMem\r
-#define memmove CopyMem\r
+#define memcpy CopyMem\r
+#define memmove CopyMem\r
\r
#define _LZMA_SIZE_OPT\r
\r
#endif // __UEFILZMA_H__\r
-\r