]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Library / LzmaCustomDecompressLib / UefiLzma.h
index 863b3ef66b982e8ccd794e81b0233fbc42794176..b1941bd4039669a0663d2aa827f78ffddf0b6f5e 100644 (file)
@@ -4,13 +4,7 @@
   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