get mac build compiling again

This commit is contained in:
Mitchell Livingston
2008-03-04 02:23:01 +00:00
parent eb18810b3e
commit 052d849b59
2 changed files with 6 additions and 5 deletions

View File

@@ -33,9 +33,9 @@
void tr_msgInit( void );
#if defined(SYS_DARWIN)
#include <CFBundle.h>
#define _(a) CFCopyLocalizedStringFromTable( \
CFSTR( a ), "LibraryLocalizable", "comment" )
#include <CoreFoundation/CFBundle.h>
#define _(a) CFStringGetCStringPtr(CFCopyLocalizedStringFromTable( \
CFSTR( a ), CFSTR("LibraryLocalizable"), "comment" ), kCFStringEncodingMacRoman)
#else
#include <libintl.h>
#define _(a) gettext (a)

View File

@@ -42,7 +42,7 @@
#import "ExpandedPathToPathTransformer.h"
#import "ExpandedPathToIconTransformer.h"
#import "SpeedLimitToTurtleIconTransformer.h"
#include "utils.h" //tr_getRatio()
//#include "utils.h" //tr_getRatio()
#import <Sparkle/Sparkle.h>
@@ -2514,7 +2514,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
downloaded += [torrent downloadedTotal];
}
return [NSString stringForRatio: tr_getRatio(uploaded, downloaded)];
#warning fix
return [NSString stringForRatio: /*tr_getRatio(uploaded, downloaded)*/0];
}
else
{