From 0c7e8058deab0516923bcc070ae49b35e005b8e0 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Fri, 9 May 2008 20:52:28 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50913 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/Preprocessor.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 89073276a9..ccc9a8781f 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -402,8 +402,6 @@ static void InitializePredefinedMacros(Preprocessor &PP, DefineBuiltinMacro(Buf, "__STDC_HOSTED__=1"); if (PP.getLangOptions().ObjC1) DefineBuiltinMacro(Buf, "__OBJC__=1"); - if (PP.getLangOptions().ObjC2) - DefineBuiltinMacro(Buf, "__OBJC2__=1"); // Add __builtin_va_list typedef. { -- 2.40.0