projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2de102
)
The alloca function, strangely enough, is found in the malloc.h header file
author
Reid Spencer
<rspencer@reidspencer.com>
Wed, 22 Sep 2004 15:28:32 +0000
(15:28 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Wed, 22 Sep 2004 15:28:32 +0000
(15:28 +0000)
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
include/llvm/Config/alloca.h
patch
|
blob
|
history
diff --git
a/include/llvm/Config/alloca.h
b/include/llvm/Config/alloca.h
index d2bbec6e526900239ca9c9362bb5a326fa9f5ea7..b4133259dc14750bf7c9e786f811c1aa04bf9e5b 100644
(file)
--- 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