Patch to support MSVC correctly, contributed by Morten Ofstad!

llvm-svn: 17213
This commit is contained in:
Chris Lattner 2004-10-25 18:38:05 +00:00
parent 259f362897
commit 3286872a18

View File

@ -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)