Index: third_party/lzma_sdk/Lzma2Dec.h |
diff --git a/third_party/lzma_sdk/Lzma2Dec.h b/third_party/lzma_sdk/Lzma2Dec.h |
index 6bc07bbc185ec4a8e5268f455b3ef8ad55b92758..e6a0f6ed6db220b4a1adcb868e84655a6fb35aaf 100644 |
--- a/third_party/lzma_sdk/Lzma2Dec.h |
+++ b/third_party/lzma_sdk/Lzma2Dec.h |
@@ -1,14 +1,12 @@ |
/* Lzma2Dec.h -- LZMA2 Decoder |
-2009-05-03 : Igor Pavlov : Public domain */ |
+2015-05-13 : Igor Pavlov : Public domain */ |
#ifndef __LZMA2_DEC_H |
#define __LZMA2_DEC_H |
#include "LzmaDec.h" |
-#ifdef __cplusplus |
-extern "C" { |
-#endif |
+EXTERN_C_BEGIN |
/* ---------- State Interface ---------- */ |
@@ -17,7 +15,7 @@ typedef struct |
CLzmaDec decoder; |
UInt32 packSize; |
UInt32 unpackSize; |
- int state; |
+ unsigned state; |
Byte control; |
Bool needInitDic; |
Bool needInitState; |
@@ -77,8 +75,6 @@ Returns: |
SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, |
Byte prop, ELzmaFinishMode finishMode, ELzmaStatus *status, ISzAlloc *alloc); |
-#ifdef __cplusplus |
-} |
-#endif |
+EXTERN_C_END |
#endif |