[llvm-commits] CVS: llvm/include/llvm/Config/alloca.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 25 11:38:19 PDT 2004
Changes in directory llvm/include/llvm/Config:
alloca.h updated: 1.6 -> 1.7
---
Log message:
Patch to support MSVC correctly, contributed by Morten Ofstad!
---
Diffs of the changes: (+2 -1)
Index: llvm/include/llvm/Config/alloca.h
diff -u llvm/include/llvm/Config/alloca.h:1.6 llvm/include/llvm/Config/alloca.h:1.7
--- llvm/include/llvm/Config/alloca.h:1.6 Wed Sep 22 10:28:32 2004
+++ llvm/include/llvm/Config/alloca.h Mon Oct 25 13:38:05 2004
@@ -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)
More information about the llvm-commits
mailing list