Don't include alloca.h on FreeBSD.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2003-06-16 23:57:13 +00:00
parent 2eb9a257c8
commit a0145ccb20
2 changed files with 4 additions and 0 deletions

View File

@ -528,7 +528,9 @@ static void generateAllocaDecl(std::ostream& Out) {
<< "extern void *__builtin_alloca(unsigned long);\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
<< "#else\n"
<< "#ifndef __FreeBSD__\n"
<< "#include <alloca.h>\n"
<< "#endif\n"
<< "#endif\n\n";
}

View File

@ -528,7 +528,9 @@ static void generateAllocaDecl(std::ostream& Out) {
<< "extern void *__builtin_alloca(unsigned long);\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
<< "#else\n"
<< "#ifndef __FreeBSD__\n"
<< "#include <alloca.h>\n"
<< "#endif\n"
<< "#endif\n\n";
}