diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-09-22 15:28:32 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-09-22 15:28:32 +0000 |
commit | 023f212f3c75b3e0660e4af1a126f029c8ca97fa (patch) | |
tree | b8ec8bebd3c76c5e0137d27ca1225da6193bdd04 /include/llvm/Config/alloca.h | |
parent | a2de102a5bd43131dd0ee5c5498cb18ee0ac4282 (diff) | |
download | external_llvm-023f212f3c75b3e0660e4af1a126f029c8ca97fa.zip external_llvm-023f212f3c75b3e0660e4af1a126f029c8ca97fa.tar.gz external_llvm-023f212f3c75b3e0660e4af1a126f029c8ca97fa.tar.bz2 |
The alloca function, strangely enough, is found in the malloc.h header file
on MINGW platform. Provide an #elseif case to #include malloc.h for this
platform if malloc.h is found.
Patch provided by Henrik Bach. Thanks Henrik!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Config/alloca.h')
-rw-r--r-- | include/llvm/Config/alloca.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Config/alloca.h b/include/llvm/Config/alloca.h index d2bbec6..b413325 100644 --- a/include/llvm/Config/alloca.h +++ b/include/llvm/Config/alloca.h @@ -27,6 +27,8 @@ /* noop on Visual C++ */ #elif defined(HAVE_ALLOCA_H) #include <alloca.h> +#elif defined(__MINGW_H) && defined(HAVE_MALLOC_H) +#include <malloc.h> #elif !defined(__GNUC__) # ifdef _AIX # pragma alloca |