3 #ifndef __COMMON_TYPES_H
4 #define __COMMON_TYPES_H
7 #ifdef _LZMA_UINT32_IS_ULONG
8 #define UInt32 unsigned long
10 #define UInt32 unsigned int
15 #define Byte unsigned char
19 #define UInt16 unsigned short
22 /* #define _SZ_NO_INT_64 */
23 /* define it your compiler doesn't support long long int */
26 #define UInt64 unsigned long
29 #define UInt64 unsigned __int64
31 #define UInt64 unsigned long long int
36 /* #define _SZ_FILE_SIZE_64 */
37 /* Use _SZ_FILE_SIZE_64 if you need support for files larger than 4 GB*/
40 #ifdef _SZ_FILE_SIZE_64
41 #define CFileSize UInt64
43 #define CFileSize UInt32
50 #define SZE_DATA_ERROR (1)
51 #define SZE_OUTOFMEMORY (2)
52 #define SZE_CRC_ERROR (3)
54 #define SZE_NOTIMPL (4)
57 #define SZE_ARCHIVE_ERROR (6)
59 #define RINOK(x) { int __result_ = (x); if(__result_ != 0) return __result_; }