argh, clean out copy
[supertux.git] / src / unison / physfs-1.1.1 / lzma / 7zTypes.h
1 /* 7zTypes.h */
2
3 #ifndef __COMMON_TYPES_H
4 #define __COMMON_TYPES_H
5
6 #ifndef _7ZIP_BYTE_DEFINED
7 #define _7ZIP_BYTE_DEFINED
8 typedef unsigned char Byte;
9 #endif 
10
11 #ifndef _7ZIP_UINT16_DEFINED
12 #define _7ZIP_UINT16_DEFINED
13 typedef unsigned short UInt16;
14 #endif 
15
16 #ifndef _7ZIP_UINT32_DEFINED
17 #define _7ZIP_UINT32_DEFINED
18 #ifdef _LZMA_UINT32_IS_ULONG
19 typedef unsigned long UInt32;
20 #else
21 typedef unsigned int UInt32;
22 #endif
23 #endif 
24
25 /* #define _SZ_NO_INT_64 */
26 /* define it your compiler doesn't support long long int */
27
28 #ifndef _7ZIP_UINT64_DEFINED
29 #define _7ZIP_UINT64_DEFINED
30 #ifdef _SZ_NO_INT_64
31 typedef unsigned long UInt64;
32 #else
33 #ifdef _MSC_VER
34 typedef unsigned __int64 UInt64;
35 #else
36 typedef unsigned long long int UInt64;
37 #endif
38 #endif
39 #endif
40
41
42 /* #define _SZ_FILE_SIZE_64 */
43 /* Use _SZ_FILE_SIZE_64 if you need support for files larger than 4 GB*/
44
45 #ifndef CFileSize
46 #ifdef _SZ_FILE_SIZE_64
47 typedef UInt64 CFileSize; 
48 #else
49 typedef UInt32 CFileSize; 
50 #endif
51 #endif
52
53 #define SZ_RESULT int
54
55 #define SZ_OK (0)
56 #define SZE_DATA_ERROR (1)
57 #define SZE_OUTOFMEMORY (2)
58 #define SZE_CRC_ERROR (3)
59
60 #define SZE_NOTIMPL (4)
61 #define SZE_FAIL (5)
62
63 #define SZE_ARCHIVE_ERROR (6)
64
65 #define RINOK(x) { int __result_ = (x); if(__result_ != 0) return __result_; }
66
67 #endif