+/** @file\r
+ Compression DLL used by PCD Tools\r
+\r
+ Copyright (c) 2006, Intel Corporation All rights reserved.\r
+ This program and the accompanying materials are licensed and made available \r
+ under the terms and conditions of the BSD License which accompanies this \r
+ 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
+\r
+**/\r
+#if defined(__GNUC__)\r
+typedef long long __int64;/*For cygwin build*/\r
+#endif\r
#include "CompressDll.h"\r
#include "EfiCompress.h"\r
\r
//\r
\r
Result = Compress (\r
- (char*) InputBuffer, \r
- SourceSize, \r
- DestBuffer,\r
- &DestSize\r
- );\r
+ (char*) InputBuffer, \r
+ SourceSize, \r
+ DestBuffer,\r
+ &DestSize\r
+ );\r
\r
if (Result = EFI_BUFFER_TOO_SMALL) {\r
- DestBuffer = malloc (DestSize);\r
+ DestBuffer = malloc (DestSize);\r
}\r
\r
//\r
//\r
Result = Compress(\r
(char*) InputBuffer, \r
- SourceSize, \r
- DestBuffer,\r
- &DestSize \r
- );\r
+ SourceSize, \r
+ DestBuffer,\r
+ &DestSize \r
+ );\r
\r
//\r
// new a MV array to store the return compressed buffer\r
void* Reserved \r
)\r
{\r
- return TRUE;\r
+ return TRUE;\r
}\r
#else\r
#ifdef __GNUC__\r