From: Reid Spencer Date: Wed, 22 Sep 2004 15:28:32 +0000 (+0000) Subject: The alloca function, strangely enough, is found in the malloc.h header file X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=023f212f3c75b3e0660e4af1a126f029c8ca97fa;p=oota-llvm.git 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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16479 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Config/alloca.h b/include/llvm/Config/alloca.h index d2bbec6e526..b4133259dc1 100644 --- a/include/llvm/Config/alloca.h +++ b/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