Add mingw support, patch contributed by Anton

llvm-svn: 28661
This commit is contained in:
Chris Lattner 2006-06-02 18:54:01 +00:00
parent 02e0b4ddb7
commit 8fd1036612
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ void CWriter::writeOperand(Value *Operand) {
static void generateCompilerSpecificCode(std::ostream& Out) {
// Alloca is hard to get, and we don't want to include stdlib.h here.
Out << "/* get a declaration for alloca */\n"
<< "#if defined(__CYGWIN__)\n"
<< "#if defined(__CYGWIN__) || defined(__MINGW32__)\n"
<< "extern void *_alloca(unsigned long);\n"
<< "#define alloca(x) _alloca(x)\n"
<< "#elif defined(__APPLE__)\n"