From: Bob Wilson Date: Mon, 19 Aug 2013 20:23:37 +0000 (+0000) Subject: Bump the value of the __APPLE_CC__ predefined macro up to 6000. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d588f5c448bd0f38b3950c7fb0571e1875cdc505;p=clang Bump the value of the __APPLE_CC__ predefined macro up to 6000. The previous value was set to match some ancient version of Apple's GCC. The value should be higher than anything used by Apple's GCC, but we don't intend for this value to be updated in the future. We have other macros to identify compiler versions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188700 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index f3822edcd5..c4772723e9 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -88,7 +88,7 @@ static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts, const llvm::Triple &Triple, StringRef &PlatformName, VersionTuple &PlatformMinVersion) { - Builder.defineMacro("__APPLE_CC__", "5621"); + Builder.defineMacro("__APPLE_CC__", "6000"); Builder.defineMacro("__APPLE__"); Builder.defineMacro("__MACH__"); Builder.defineMacro("OBJC_NEW_PROPERTIES");