diff options
author | Steve Naroff <snaroff@apple.com> | 2008-05-15 21:12:10 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-05-15 21:12:10 +0000 |
commit | 73b17cd017f70d0bf7ca2dbb12f09f99081d7fdb (patch) | |
tree | 044df123bead386197f3ba84291964684eec1afa /lib/Lex | |
parent | cf6223c52af888d4375e0d75553da8d783b9705a (diff) |
Fix rewriter bug <rdar://problem/5929344> clang ObjC rewriter: "extern int __CFConstantStringClassReference[];" should be extern "C".
Have clang predefine OBJC_NEW_PROPERTIES (which is what gcc does).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index ccc9a8781f..8dac3f066f 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -402,6 +402,8 @@ static void InitializePredefinedMacros(Preprocessor &PP, DefineBuiltinMacro(Buf, "__STDC_HOSTED__=1"); if (PP.getLangOptions().ObjC1) DefineBuiltinMacro(Buf, "__OBJC__=1"); + if (PP.getLangOptions().ObjC2) + DefineBuiltinMacro(Buf, "OBJC_NEW_PROPERTIES"); // Add __builtin_va_list typedef. { |