[dasher] Mac: fix XCode4 not defining TARGET_OS_MAC



commit 8bac71ce9046880a6c1acef06ed6ccec09cccd88
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date:   Sat Nov 26 09:59:19 2011 +0000

    Mac: fix XCode4 not defining TARGET_OS_MAC
    
    (on mac builds; it does on iPhone builds. And XCode3 defines it on both!)

 Src/MacOSX/Dasher.xcodeproj/project.pbxproj |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/Src/MacOSX/Dasher.xcodeproj/project.pbxproj b/Src/MacOSX/Dasher.xcodeproj/project.pbxproj
index 8373ac2..9a03d2a 100755
--- a/Src/MacOSX/Dasher.xcodeproj/project.pbxproj
+++ b/Src/MacOSX/Dasher.xcodeproj/project.pbxproj
@@ -1877,6 +1877,10 @@
 				GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
 				GCC_MODEL_TUNING = G4;
 				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					DEBUG,
+					TARGET_OS_MAC,
+				);
 				INFOPLIST_FILE = "Info-Dasher.plist";
 				LIBRARY_SEARCH_PATHS = /Volumes/Home/UsersAnnex/dougie/Projects/Dasher/Dasher_17/Src/Common/Expat;
 				OTHER_CFLAGS = (
@@ -1904,6 +1908,7 @@
 				COPY_PHASE_STRIP = YES;
 				GCC_MODEL_TUNING = G4;
 				GCC_OPTIMIZATION_LEVEL = 3;
+				GCC_PREPROCESSOR_DEFINITIONS = TARGET_OS_MAC;
 				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
 				INFOPLIST_FILE = "Info-Dasher.plist";
 				OTHER_CFLAGS = (
@@ -1929,6 +1934,7 @@
 			buildSettings = {
 				GCC_MODEL_TUNING = G4;
 				GCC_OPTIMIZATION_LEVEL = 3;
+				GCC_PREPROCESSOR_DEFINITIONS = TARGET_OS_MAC;
 				INFOPLIST_FILE = "Info-Dasher.plist";
 				OTHER_CFLAGS = (
 					"-D",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]