aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-09-30 00:46:39 +0000
committerChris Lattner <sabre@nondot.org>2008-09-30 00:46:39 +0000
commit71af22964535d66b656b4c2de3551bf770e4164d (patch)
tree0a19217e1d06339879aa28d4804b62532bae085c
parentfbbe0ac428f804184c1b7c24723dc6cebbe11d90 (diff)
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ is a darwin-specific #define
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56822 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--clang.xcodeproj/project.pbxproj4
-rw-r--r--lib/Basic/Targets.cpp3
-rw-r--r--lib/Lex/Preprocessor.cpp2
3 files changed, 5 insertions, 4 deletions
diff --git a/clang.xcodeproj/project.pbxproj b/clang.xcodeproj/project.pbxproj
index eea26955cb..ae90e3556b 100644
--- a/clang.xcodeproj/project.pbxproj
+++ b/clang.xcodeproj/project.pbxproj
@@ -862,13 +862,13 @@
DE3985780CB8ADC800223765 /* ASTConsumers.h */,
DE39857A0CB8ADCB00223765 /* ASTConsumers.cpp */,
DE38CF150D8C9DE000A273B6 /* DiagChecker.cpp */,
+ 72D16C210D9975EA00E6DA4A /* HTMLPrint.cpp */,
DE5932CF0AD60FF400BC794C /* PrintParserCallbacks.cpp */,
DE5932D00AD60FF400BC794C /* PrintPreprocessedOutput.cpp */,
- 352981080CC58344008B5E84 /* SerializationTest.cpp */,
- 72D16C210D9975EA00E6DA4A /* HTMLPrint.cpp */,
9030C1090E807A9300941490 /* RewriteBlocks.cpp */,
DEA0EBD90DD2D3C8007A02A9 /* RewriteMacros.cpp */,
035611E10DB40C8100D2EF2A /* RewriteObjC.cpp */,
+ 352981080CC58344008B5E84 /* SerializationTest.cpp */,
);
name = Driver;
sourceTree = "<group>";
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index 9454e348a9..6139f9d9e0 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -42,7 +42,8 @@ static void getSolarisDefines(std::vector<char> &Defs) {
static void getDarwinDefines(std::vector<char> &Defs) {
Define(Defs, "__APPLE__");
Define(Defs, "__MACH__");
-
+ Define(Defs, "__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050");
+
if (0) // darwin_pascal_strings
Define(Defs, "__PASCAL_STRINGS__");
}
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp
index 691f46ac2d..3f477c296c 100644
--- a/lib/Lex/Preprocessor.cpp
+++ b/lib/Lex/Preprocessor.cpp
@@ -428,8 +428,8 @@ static void InitializePredefinedMacros(Preprocessor &PP,
DefineBuiltinMacro(Buf, "__clang__=1"); // Clang Frontend
// Compiler set macros.
+ // Claim to be GCC 4.2.1-5621
DefineBuiltinMacro(Buf, "__APPLE_CC__=5621");
- DefineBuiltinMacro(Buf, "__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050");
DefineBuiltinMacro(Buf, "__GNUC_MINOR__=2");
DefineBuiltinMacro(Buf, "__GNUC_PATCHLEVEL__=1");
DefineBuiltinMacro(Buf, "__GNUC__=4");