about summary refs log tree commit diff
path: root/src/rt/rust_uv.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-04-03 17:12:10 -0700
committerBrian Anderson <banderson@mozilla.com>2012-04-03 17:12:10 -0700
commitab2158f070c49249b4df0fd7d5063deb27425fc3 (patch)
tree34d52fefcc1084accc88afd7c0ff1c5aea3dd410 /src/rt/rust_uv.cpp
parentf4b293f0e379291d2c2e9c56713862d5546a9e3a (diff)
downloadrust-ab2158f070c49249b4df0fd7d5063deb27425fc3.tar.gz
rust-ab2158f070c49249b4df0fd7d5063deb27425fc3.zip
rt: alloca is spelled differently on win32
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);
 }