From 93ccd72f77fb8844d2743848310c70bc4fcb950a Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 4 Mar 2008 03:34:50 +0000 Subject: [PATCH] update project file to have -DSYS_DARWIN flag --- Transmission.xcodeproj/project.pbxproj | 5 +++++ macosx/Controller.m | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Transmission.xcodeproj/project.pbxproj b/Transmission.xcodeproj/project.pbxproj index 8d08d730b..bd068f06d 100644 --- a/Transmission.xcodeproj/project.pbxproj +++ b/Transmission.xcodeproj/project.pbxproj @@ -2089,6 +2089,10 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = macosx/Transmission_Prefix.pch; INFOPLIST_FILE = macosx/Info.plist; + OTHER_CFLAGS = ( + "$(inherited)", + "-DSYS_DARWIN", + ); PRODUCT_NAME = Transmission; WRAPPER_EXTENSION = app; }; @@ -2152,6 +2156,7 @@ GCC_WARN_UNUSED_PARAMETER = NO; GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; + IBC_FLATTEN_NIBS = YES; MACOSX_DEPLOYMENT_TARGET = 10.4; OTHER_CFLAGS = "$(inherited)"; PREBINDING = NO; diff --git a/macosx/Controller.m b/macosx/Controller.m index 2dadad8f1..55dbcb7fc 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -42,8 +42,6 @@ #import "ExpandedPathToPathTransformer.h" #import "ExpandedPathToIconTransformer.h" #import "SpeedLimitToTurtleIconTransformer.h" - -#define SYS_DARWIN #include "utils.h" //tr_getRatio() #import @@ -2516,7 +2514,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi downloaded += [torrent downloadedTotal]; } - #warning fix return [NSString stringForRatio: tr_getRatio(uploaded, downloaded)]; } else