From 0ad4d60b8c8a893d91d2082978123a60afd27633 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Fri, 29 Jun 2012 19:33:05 +0000 Subject: [PATCH] modern objc translator: string.h is unavailable on some non-OSX platforms declare memset in rewritten code instead. llvm-svn: 159454 --- clang/lib/Rewrite/RewriteModernObjC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Rewrite/RewriteModernObjC.cpp b/clang/lib/Rewrite/RewriteModernObjC.cpp index b0f4c0d084ec..a14a9efb7847 100644 --- a/clang/lib/Rewrite/RewriteModernObjC.cpp +++ b/clang/lib/Rewrite/RewriteModernObjC.cpp @@ -5958,7 +5958,7 @@ void RewriteModernObjC::Initialize(ASTContext &context) { } // needed for use of memset. - Preamble += "\n#include \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 \n";