3 #ifndef __COMMON_TYPES_H
4 #define __COMMON_TYPES_H
6 #ifndef _7ZIP_BYTE_DEFINED
7 #define _7ZIP_BYTE_DEFINED
8 typedef unsigned char Byte;
11 #ifndef _7ZIP_UINT16_DEFINED
12 #define _7ZIP_UINT16_DEFINED
13 typedef unsigned short UInt16;
16 #ifndef _7ZIP_UINT32_DEFINED
17 #define _7ZIP_UINT32_DEFINED
18 #ifdef _LZMA_UINT32_IS_ULONG
19 typedef unsigned long UInt32;
21 typedef unsigned int UInt32;
25 /* #define _SZ_NO_INT_64 */
26 /* define it your compiler doesn't support long long int */
28 #ifndef _7ZIP_UINT64_DEFINED
29 #define _7ZIP_UINT64_DEFINED
31 typedef unsigned long UInt64;
34 typedef unsigned __int64 UInt64;
36 typedef unsigned long long int UInt64;
42 /* #define _SZ_FILE_SIZE_64 */
43 /* Use _SZ_FILE_SIZE_64 if you need support for files larger than 4 GB*/
46 #ifdef _SZ_FILE_SIZE_64
47 typedef UInt64 CFileSize;
49 typedef UInt32 CFileSize;
56 #define SZE_DATA_ERROR (1)
57 #define SZE_OUTOFMEMORY (2)
58 #define SZE_CRC_ERROR (3)
60 #define SZE_NOTIMPL (4)
63 #define SZE_ARCHIVE_ERROR (6)
65 #define RINOK(x) { int __result_ = (x); if(__result_ != 0) return __result_; }