misc/libphysfs/lzma/C/Compress/Branch/BranchTypes.h
changeset 13881 99b265e0d1d0
parent 13880 5f819b90d479
child 13882 b172a5d40eee
equal deleted inserted replaced
13880:5f819b90d479 13881:99b265e0d1d0
     1 /* BranchTypes.h */
       
     2 
       
     3 #ifndef __BRANCHTYPES_H
       
     4 #define __BRANCHTYPES_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 #ifndef _7ZIP_UINT64_DEFINED
       
    26 #define _7ZIP_UINT64_DEFINED
       
    27 #ifdef _SZ_NO_INT_64
       
    28 typedef unsigned long UInt64;
       
    29 #else
       
    30 #if defined(_MSC_VER) || defined(__BORLANDC__)
       
    31 typedef unsigned __int64 UInt64;
       
    32 #else
       
    33 typedef unsigned long long int UInt64;
       
    34 #endif
       
    35 #endif
       
    36 #endif
       
    37 
       
    38 /* #define _LZMA_NO_SYSTEM_SIZE_T */
       
    39 /* You can use it, if you don't want <stddef.h> */
       
    40 
       
    41 #ifndef _7ZIP_SIZET_DEFINED
       
    42 #define _7ZIP_SIZET_DEFINED
       
    43 #ifdef _LZMA_NO_SYSTEM_SIZE_T
       
    44 typedef UInt32 SizeT;
       
    45 #else
       
    46 #include <stddef.h>
       
    47 typedef size_t SizeT;
       
    48 #endif
       
    49 #endif
       
    50 
       
    51 #endif