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 a564e9e0ba
commit 778963766c
1 changed files with 2 additions and 1 deletions

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)