diff options
Diffstat (limited to '7zip/Compress/Rar29/Original/rartypes.hpp')
-rwxr-xr-x | 7zip/Compress/Rar29/Original/rartypes.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/7zip/Compress/Rar29/Original/rartypes.hpp b/7zip/Compress/Rar29/Original/rartypes.hpp new file mode 100755 index 00000000..9e4f640f --- /dev/null +++ b/7zip/Compress/Rar29/Original/rartypes.hpp @@ -0,0 +1,21 @@ +#ifndef _RAR_TYPES_ +#define _RAR_TYPES_ + +typedef unsigned char byte; //8 bits +typedef unsigned short ushort; //preferably 16 bits, but can be more +typedef unsigned int uint; //32 bits or more + +typedef unsigned int uint32; //32 bits exactly +typedef int sint32; //signed 32 bits exactly +#define PRESENT_INT32 + +#if defined(_WIN_32) || defined(__GNUC__) || defined(__sgi) || defined(_AIX) || defined(__sun) || defined(__hpux) +typedef wchar_t wchar; +#else +typedef ushort wchar; +#endif + +#define SHORT16(x) (sizeof(ushort)==2 ? (ushort)(x):((x)&0xffff)) +#define UINT32(x) (sizeof(uint32)==4 ? (uint32)(x):((x)&0xffffffff)) + +#endif |