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
This commit is contained in:
Reid Spencer 2004-09-22 15:28:32 +00:00
parent 033b816171
commit c4eb57c525
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@
/* noop on Visual C++ */
#elif defined(HAVE_ALLOCA_H)
#include <alloca.h>
#elif defined(__MINGW_H) && defined(HAVE_MALLOC_H)
#include <malloc.h>
#elif !defined(__GNUC__)
# ifdef _AIX
# pragma alloca