From: Chris Lattner Date: Mon, 25 Oct 2004 18:38:05 +0000 (+0000) Subject: Patch to support MSVC correctly, contributed by Morten Ofstad! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=988d174e9699c06432efbf2ef3f268bd645179c4;p=oota-llvm.git Patch to support MSVC correctly, contributed by Morten Ofstad! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17213 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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)