From c4eb57c525dd152e98d7d54b74cb61867e800a8d Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 22 Sep 2004 15:28:32 +0000 Subject: [PATCH] The alloca function, strangely enough, is found in the malloc.h header file 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! llvm-svn: 16479 --- llvm/include/llvm/Config/alloca.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/include/llvm/Config/alloca.h b/llvm/include/llvm/Config/alloca.h index d2bbec6e5269..b4133259dc14 100644 --- a/llvm/include/llvm/Config/alloca.h +++ b/llvm/include/llvm/Config/alloca.h @@ -27,6 +27,8 @@ /* noop on Visual C++ */ #elif defined(HAVE_ALLOCA_H) #include +#elif defined(__MINGW_H) && defined(HAVE_MALLOC_H) +#include #elif !defined(__GNUC__) # ifdef _AIX # pragma alloca