Skip to content

Commit

Permalink
tools/lzma-old fix compile issues (patch from openwrt#10253)
Browse files Browse the repository at this point in the history
SVN-Revision: 28502
  • Loading branch information
Felix Fietkau committed Oct 21, 2011
1 parent ee61d70 commit 0b89342
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/lzma-old/patches/100-lzma_zlib.patch
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@
+ UInt64 m_offset;
+};
+
+ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
+ZEXTERN int ZEXPORT compress2 (Bytef *dest, uLongf *destLen,
+ const Bytef *source, uLong sourceLen,
+ int level))
+ int level)
+{
+ CInMemoryStream *inStreamSpec = new CInMemoryStream(source, sourceLen);
+ CMyComPtr<ISequentialInStream> inStream = inStreamSpec;
Expand Down Expand Up @@ -374,8 +374,8 @@
+ return Z_OK;
+}
+
+ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
+ const Bytef *source, uLong sourceLen))
+ZEXTERN int ZEXPORT uncompress (Bytef *dest, uLongf *destLen,
+ const Bytef *source, uLong sourceLen)
+{
+ CInMemoryStream *inStreamSpec = new CInMemoryStream(source, sourceLen);
+ CMyComPtr<ISequentialInStream> inStream = inStreamSpec;
Expand Down

0 comments on commit 0b89342

Please sign in to comment.