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:
Fariborz Jahanian 2012-06-29 19:33:05 +00:00
parent c146589aa4
commit 0ad4d60b8c
1 changed files with 1 additions and 1 deletions

View File

@ -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";