diff --git a/src/rt/rust_uv.cpp b/src/rt/rust_uv.cpp index 6a7859509d0..e6d6c2e52ba 100644 --- a/src/rt/rust_uv.cpp +++ b/src/rt/rust_uv.cpp @@ -1,3 +1,7 @@ +#ifdef __WIN32__ +// For alloca +#include +#endif #include "rust_globals.h" #include "rust_task.h" @@ -98,11 +102,7 @@ rust_uv_loop_delete(uv_loop_t* loop) { // from a malloc with no backtrace. // // This pads our stack with some extra space before deleting the loop -#ifndef __WIN32__ alloca(512); -#else - _alloca(512); -#endif uv_loop_delete(loop); }