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:
30cc227
)
Patch to support MSVC correctly, contributed by Morten Ofstad!
author
Chris Lattner
<sabre@nondot.org>
Mon, 25 Oct 2004 18:38:05 +0000
(18:38 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 25 Oct 2004 18:38:05 +0000
(18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17213
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 b4133259dc14750bf7c9e786f811c1aa04bf9e5b..7351aa4dc862982462887dae770d8b5dfb7a8bf4 100644
(file)
--- 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)