mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
get mac build compiling again
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user