From 81ce090643a16e98a202735cb94c8788be2c9219 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 3 Apr 2012 17:14:28 -0700 Subject: [PATCH] rt: Include the correct header for alloca on windows --- src/rt/rust_uv.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); }