From ab2158f070c49249b4df0fd7d5063deb27425fc3 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 3 Apr 2012 17:12:10 -0700 Subject: [PATCH] rt: alloca is spelled differently on win32 --- src/rt/rust_uv.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); }