[cfe-commits] r50913 - /cfe/trunk/lib/Lex/Preprocessor.cpp
snaroff at apple.com
Fri May 9 13:52:28 PDT 2008
Date: Fri May 9 15:52:28 2008
New Revision: 50913
DO NOT pre-defined __OBJC2__. The __OBJC2__ macro should only be defined when targeting the new, Apple 2.0 *runtime ABI*. It is not intended to be used to #ifdef ObjC 2.0 langauge features. This is unfortunate (given it's name). In a perfect world, this defined would be named __OBJC2_RUNTIME_ABI__. Oh well.
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Fri May 9 15:52:28 2008
@@ -402,8 +402,6 @@
- if (PP.getLangOptions().ObjC2)
- DefineBuiltinMacro(Buf, "__OBJC2__=1");
// Add __builtin_va_list typedef.
More information about the cfe-commits