diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:38:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:38:05 +0000 |
commit | 988d174e9699c06432efbf2ef3f268bd645179c4 (patch) | |
tree | 33e696b520f443f29663789d08aec1306d1abeee | |
parent | 30cc227fa79c253332ea805a3a78ddca72aea428 (diff) |
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
-rw-r--r-- | include/llvm/Config/alloca.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Config/alloca.h b/include/llvm/Config/alloca.h index b4133259dc..7351aa4dc8 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 <malloc.h> +#define alloca _alloca #elif defined(HAVE_ALLOCA_H) #include <alloca.h> #elif defined(__MINGW_H) && defined(HAVE_MALLOC_H) |