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 /include | |
parent | 30cc227fa79c253332ea805a3a78ddca72aea428 (diff) | |
download | external_llvm-988d174e9699c06432efbf2ef3f268bd645179c4.zip external_llvm-988d174e9699c06432efbf2ef3f268bd645179c4.tar.gz external_llvm-988d174e9699c06432efbf2ef3f268bd645179c4.tar.bz2 |
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
Diffstat (limited to 'include')
-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 b413325..7351aa4 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) |