|
@@ -593,9 +593,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
|
|
|
Builder.defineMacro("OBJC_ZEROCOST_EXCEPTIONS");
|
|
|
}
|
|
|
|
|
|
- Builder.defineMacro("__OBJC_BOOL_IS_BOOL",
|
|
|
- Twine(TI.useSignedCharForObjCBool() ? "0" : "1"));
|
|
|
-
|
|
|
if (LangOpts.getGC() != LangOptions::NonGC)
|
|
|
Builder.defineMacro("__OBJC_GC__");
|
|
|
|
|
@@ -626,6 +623,11 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
|
|
|
Builder.defineMacro("IB_DESIGNABLE", "");
|
|
|
}
|
|
|
|
|
|
+ // Define a macro that describes the Objective-C boolean type even for C
|
|
|
+ // and C++ since BOOL can be used from non Objective-C code.
|
|
|
+ Builder.defineMacro("__OBJC_BOOL_IS_BOOL",
|
|
|
+ Twine(TI.useSignedCharForObjCBool() ? "0" : "1"));
|
|
|
+
|
|
|
if (LangOpts.CPlusPlus)
|
|
|
InitializeCPlusPlusFeatureTestMacros(LangOpts, Builder);
|
|
|
|