about summary refs log tree commit diff
path: root/src/rt/rust_uv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_uv.cpp')
-rw-r--r--src/rt/rust_uv.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_uv.cpp b/src/rt/rust_uv.cpp
index e3c29ae974a..6a7859509d0 100644
--- a/src/rt/rust_uv.cpp
+++ b/src/rt/rust_uv.cpp
@@ -98,7 +98,11 @@ 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);
 }