diff --git a/py/builtinimport.c b/py/builtinimport.c index 323b63ef61..f4e089b5d8 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -1,12 +1,8 @@ #include -#include #include #include #include -#ifdef __MINGW32__ -// For alloca() -#include -#endif +#include #include "mpconfig.h" #include "nlr.h" diff --git a/py/objfun.c b/py/objfun.c index 37fe809658..4690dc6c88 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -1,11 +1,7 @@ #include -#include #include #include -#ifdef __MINGW32__ -// For alloca() -#include -#endif +#include #include "mpconfig.h" #include "nlr.h" diff --git a/windows/alloca.h b/windows/alloca.h new file mode 100644 index 0000000000..f8fa6f17a0 --- /dev/null +++ b/windows/alloca.h @@ -0,0 +1 @@ +#include