BCM WL 6.30.102.9 (r366174)
[tomato.git] / release / src-rt / linux / linux-2.6 / scripts / squashfs / lzma / C / 7zip / Archive / 7z_C / 7zTypes.h
blob28adc7291645352de1371fafc3ccbb307954e3aa
1 /* 7zTypes.h */
3 #ifndef __COMMON_TYPES_H
4 #define __COMMON_TYPES_H
6 #ifndef UInt32
7 #ifdef _LZMA_UINT32_IS_ULONG
8 #define UInt32 unsigned long
9 #else
10 #define UInt32 unsigned int
11 #endif
12 #endif
14 #ifndef Byte
15 #define Byte unsigned char
16 #endif
18 #ifndef UInt16
19 #define UInt16 unsigned short
20 #endif
22 /* #define _SZ_NO_INT_64 */
23 /* define it your compiler doesn't support long long int */
25 #ifdef _SZ_NO_INT_64
26 #define UInt64 unsigned long
27 #else
28 #ifdef _MSC_VER
29 #define UInt64 unsigned __int64
30 #else
31 #define UInt64 unsigned long long int
32 #endif
33 #endif
36 /* #define _SZ_FILE_SIZE_64 */
37 /* Use _SZ_FILE_SIZE_64 if you need support for files larger than 4 GB*/
39 #ifndef CFileSize
40 #ifdef _SZ_FILE_SIZE_64
41 #define CFileSize UInt64
42 #else
43 #define CFileSize UInt32
44 #endif
45 #endif
47 #define SZ_RESULT int
49 #define SZ_OK (0)
50 #define SZE_DATA_ERROR (1)
51 #define SZE_OUTOFMEMORY (2)
52 #define SZE_CRC_ERROR (3)
54 #define SZE_NOTIMPL (4)
55 #define SZE_FAIL (5)
57 #define SZE_ARCHIVE_ERROR (6)
59 #define RINOK(x) { int __result_ = (x); if(__result_ != 0) return __result_; }
61 #endif