diff options
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index d38c6c7e5e..71e0c3c9fb 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -676,7 +676,7 @@ void CWriter::printModule(Module *M) { // Print Malloc prototype if needed if (needsMalloc){ Out << "\n/* Malloc to make sun happy */\n"; - Out << "extern void * malloc(size_t);\n\n"; + Out << "extern void * malloc();\n\n"; } // Output the global variable declarations diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index d38c6c7e5e..71e0c3c9fb 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -676,7 +676,7 @@ void CWriter::printModule(Module *M) { // Print Malloc prototype if needed if (needsMalloc){ Out << "\n/* Malloc to make sun happy */\n"; - Out << "extern void * malloc(size_t);\n\n"; + Out << "extern void * malloc();\n\n"; } // Output the global variable declarations |