Skip to content

Commit df8f67e

Browse files
committed
CYGWIN: use alloca() for adding stack space.
1 parent 244c84e commit df8f67e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

codec/decoder/plus/src/welsDecoderExt.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ namespace WelsDec {
9090
***************************************************************************/
9191
DECLARE_PROCTHREAD (pThrProcInit, p) {
9292
SWelsDecThreadInfo* sThreadInfo = (SWelsDecThreadInfo*)p;
93-
#if defined(WIN32)
93+
#if defined(__CYGWIN__)
94+
alloca (WELS_DEC_MAX_THREAD_STACK_SIZE * (sThreadInfo->uiThrNum + 1));
95+
#elif defined(WIN32)
9496
_alloca (WELS_DEC_MAX_THREAD_STACK_SIZE * (sThreadInfo->uiThrNum + 1));
9597
#endif
9698
return sThreadInfo->pThrProcMain (p);

0 commit comments

Comments
 (0)