forked from OSchip/llvm-project
modern objc translator: string.h is unavailable on some non-OSX
platforms declare memset in rewritten code instead. llvm-svn: 159454
This commit is contained in:
parent
c146589aa4
commit
0ad4d60b8c
|
@ -5958,7 +5958,7 @@ void RewriteModernObjC::Initialize(ASTContext &context) {
|
|||
}
|
||||
|
||||
// needed for use of memset.
|
||||
Preamble += "\n#include <string.h>\n";
|
||||
Preamble += "\nextern \"C\" void * memset(void *b, int c, unsigned long len);\n";
|
||||
|
||||
// Declarations required for modern objective-c array and dictionary literals.
|
||||
Preamble += "\n#include <stdarg.h>\n";
|
||||
|
|
Loading…
Reference in New Issue