Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
31
Src/external_dependencies/openmpt-trunk/include/unrar/rardefs.hpp
vendored
Normal file
31
Src/external_dependencies/openmpt-trunk/include/unrar/rardefs.hpp
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef _RAR_DEFS_
|
||||
#define _RAR_DEFS_
|
||||
|
||||
#define Min(x,y) (((x)<(y)) ? (x):(y))
|
||||
#define Max(x,y) (((x)>(y)) ? (x):(y))
|
||||
|
||||
// Universal replacement of abs function.
|
||||
#define Abs(x) (((x)<0) ? -(x):(x))
|
||||
|
||||
#define ASIZE(x) (sizeof(x)/sizeof(x[0]))
|
||||
|
||||
// MAXPASSWORD is expected to be multiple of CRYPTPROTECTMEMORY_BLOCK_SIZE (16)
|
||||
// for CryptProtectMemory in SecPassword.
|
||||
#define MAXPASSWORD 128
|
||||
|
||||
#define MAXSFXSIZE 0x200000
|
||||
|
||||
#define MAXCMTSIZE 0x40000
|
||||
|
||||
#define DefSFXName L"default.sfx"
|
||||
#define DefSortListName L"rarfiles.lst"
|
||||
|
||||
|
||||
#ifndef SFX_MODULE
|
||||
#define USE_QOPEN
|
||||
#endif
|
||||
|
||||
// Produce the value, which is equal or larger than 'v' and aligned to 'a'.
|
||||
#define ALIGN_VALUE(v,a) (size_t(v) + ( (~size_t(v) + 1) & (a - 1) ) )
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue