mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Add mingw support, patch contributed by Anton
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
191b0ba97e
commit
d9477607dc
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user