summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-22 15:28:32 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-22 15:28:32 +0000
commit023f212f3c75b3e0660e4af1a126f029c8ca97fa (patch)
treeb8ec8bebd3c76c5e0137d27ca1225da6193bdd04 /include
parenta2de102a5bd43131dd0ee5c5498cb18ee0ac4282 (diff)
downloadllvm-023f212f3c75b3e0660e4af1a126f029c8ca97fa.tar.gz
llvm-023f212f3c75b3e0660e4af1a126f029c8ca97fa.tar.bz2
llvm-023f212f3c75b3e0660e4af1a126f029c8ca97fa.tar.xz
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')
-rw-r--r--include/llvm/Config/alloca.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Config/alloca.h b/include/llvm/Config/alloca.h
index d2bbec6e52..b4133259dc 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