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 #ifndef _7ZIP_INT32_DEFINED
26 #define _7ZIP_INT32_DEFINED
27 #ifdef _LZMA_INT32_IS_ULONG
34 /* #define _SZ_NO_INT_64 */
35 /* define it your compiler doesn't support long long int */
37 #ifndef _7ZIP_UINT64_DEFINED
38 #define _7ZIP_UINT64_DEFINED
40 typedef unsigned long UInt64
;
42 #if defined(_MSC_VER) || defined(__BORLANDC__)
43 typedef unsigned __int64 UInt64
;
45 typedef unsigned long long int UInt64
;
51 /* #define _SZ_FILE_SIZE_32 */
52 /* You can define _SZ_FILE_SIZE_32, if you don't need support for files larger than 4 GB*/
55 #ifdef _SZ_FILE_SIZE_32
56 typedef UInt32 CFileSize
;
58 typedef UInt64 CFileSize
;
68 #define SZE_DATA_ERROR (1)
69 #define SZE_CRC_ERROR (3)
70 #define SZE_ARCHIVE_ERROR (6)
72 #define SZE_OUTOFMEMORY (0x8007000EL)
73 #define SZE_NOTIMPL (0x80004001L)
74 #define SZE_FAIL (0x80004005L)
75 #define SZE_INVALIDARG (0x80070057L)
79 #define RINOK(x) { HRes __result_ = (x); if(__result_ != 0) return __result_; }
87 #define StdCall __stdcall
93 #define MY_FAST_CALL __declspec(noinline) __fastcall
94 #elif defined( _MSC_VER)
95 #define MY_FAST_CALL __fastcall