define __weak to null in rewritten source for

-fms-extensions as well.

llvm-svn: 93569
This commit is contained in:
Fariborz Jahanian 2010-01-15 22:29:39 +00:00
parent fd850837a3
commit f0462ff691
1 changed files with 1 additions and 0 deletions

View File

@ -618,6 +618,7 @@ void RewriteObjC::Initialize(ASTContext &context) {
Preamble += "#undef __OBJC_RW_DLLIMPORT\n";
Preamble += "#undef __OBJC_RW_STATICIMPORT\n";
Preamble += "#define __attribute__(X)\n";
Preamble += "#define __weak\n";
}
else {
Preamble += "#define __block\n";