From 353b0289f34abaff8cd6d5e4cbb02851eb80f118 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 20 Apr 2014 22:15:35 +0300 Subject: [PATCH] py: Add win32-specific header for alloca(). --- py/builtinimport.c | 4 ++++ py/objfun.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/py/builtinimport.c b/py/builtinimport.c index 262ee04a53..4a2f6510c3 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -3,6 +3,10 @@ #include #include #include +#ifdef __MINGW32__ +// For alloca() +#include +#endif #include "nlr.h" #include "misc.h" diff --git a/py/objfun.c b/py/objfun.c index c7144f3078..940b64a66e 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -2,6 +2,10 @@ #include #include #include +#ifdef __MINGW32__ +// For alloca() +#include +#endif #include "nlr.h" #include "misc.h"