From 3286872a18a553f66e869df1a466004f954062f7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 25 Oct 2004 18:38:05 +0000 Subject: [PATCH] Patch to support MSVC correctly, contributed by Morten Ofstad! llvm-svn: 17213 --- include/llvm/Config/alloca.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/Config/alloca.h b/include/llvm/Config/alloca.h index b4133259dc1..7351aa4dc86 100644 --- a/include/llvm/Config/alloca.h +++ b/include/llvm/Config/alloca.h @@ -24,7 +24,8 @@ * (notably FreeBSD) defined alloca() there. */ #ifdef _MSC_VER -/* noop on Visual C++ */ +#include +#define alloca _alloca #elif defined(HAVE_ALLOCA_H) #include #elif defined(__MINGW_H) && defined(HAVE_MALLOC_H)