diff options
Diffstat (limited to 'CPP/7zip/Compress/LZMA')
-rwxr-xr-x | CPP/7zip/Compress/LZMA/LZMAEncoder.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CPP/7zip/Compress/LZMA/LZMAEncoder.cpp b/CPP/7zip/Compress/LZMA/LZMAEncoder.cpp index a57b2a74..c2e2acbe 100755 --- a/CPP/7zip/Compress/LZMA/LZMAEncoder.cpp +++ b/CPP/7zip/Compress/LZMA/LZMAEncoder.cpp @@ -3,7 +3,18 @@ #include "StdAfx.h" #include <stdio.h> + +#ifdef _WIN32 +#define USE_ALLOCA +#endif + +#ifdef USE_ALLOCA +#ifdef _WIN32 #include <malloc.h> +#else +#include <stdlib.h> +#endif +#endif #include "../../../Common/Defs.h" #include "../../Common/StreamUtils.h" @@ -1266,8 +1277,10 @@ HRESULT CEncoder::CodeReal(ISequentialInStream *inStream, { // _needReleaseMFStream = false; #ifdef COMPRESS_MF_MT + #ifdef USE_ALLOCA alloca(0x300); #endif + #endif CCoderReleaser coderReleaser(this); RINOK(SetStreams(inStream, outStream, inSize, outSize)); for (;;) |