| 1 | /* |
| 2 | LzmaTypes.h |
| 3 | |
| 4 | Types for LZMA Decoder |
| 5 | |
| 6 | This file written and distributed to public domain by Igor Pavlov. |
| 7 | This file is part of LZMA SDK 4.40 (2006-05-01) |
| 8 | */ |
| 9 | |
| 10 | #ifndef __LZMATYPES_H |
| 11 | #define __LZMATYPES_H |
| 12 | |
| 13 | #ifndef _7ZIP_BYTE_DEFINED |
| 14 | #define _7ZIP_BYTE_DEFINED |
| 15 | typedef unsigned char Byte; |
| 16 | #endif |
| 17 | |
| 18 | #ifndef _7ZIP_UINT16_DEFINED |
| 19 | #define _7ZIP_UINT16_DEFINED |
| 20 | typedef unsigned short UInt16; |
| 21 | #endif |
| 22 | |
| 23 | #ifndef _7ZIP_UINT32_DEFINED |
| 24 | #define _7ZIP_UINT32_DEFINED |
| 25 | #ifdef _LZMA_UINT32_IS_ULONG |
| 26 | typedef unsigned long UInt32; |
| 27 | #else |
| 28 | typedef unsigned int UInt32; |
| 29 | #endif |
| 30 | #endif |
| 31 | |
| 32 | /* #define _LZMA_NO_SYSTEM_SIZE_T */ |
| 33 | /* You can use it, if you don't want <stddef.h> */ |
| 34 | |
| 35 | #ifndef _7ZIP_SIZET_DEFINED |
| 36 | #define _7ZIP_SIZET_DEFINED |
| 37 | #ifdef _LZMA_NO_SYSTEM_SIZE_T |
| 38 | typedef UInt32 SizeT; |
| 39 | #else |
| 40 | #include <stddef.h> |
| 41 | typedef size_t SizeT; |
| 42 | #endif |
| 43 | #endif |
| 44 | |
| 45 | #endif |
| 46 | |