diff options
author | Oystein Eftevaag | 2009-12-26 16:00:41 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2009-12-26 16:00:41 +0000 |
commit | b21679e56ee76be47bf5fb10bcd0592b7b19e6f2 (patch) | |
tree | 8ba92442e3675a824a8e765eff69441c2a37f81d /gui | |
parent | b2c170168e4e970c1d8025658800d4d45037a095 (diff) | |
download | scummvm-rg350-b21679e56ee76be47bf5fb10bcd0592b7b19e6f2.tar.gz scummvm-rg350-b21679e56ee76be47bf5fb10bcd0592b7b19e6f2.tar.bz2 scummvm-rg350-b21679e56ee76be47bf5fb10bcd0592b7b19e6f2.zip |
Buildbot compile fix for os x cross compile
svn-id: r46592
Diffstat (limited to 'gui')
-rw-r--r-- | gui/browser_osx.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/browser_osx.mm b/gui/browser_osx.mm index 9b4aa81afb..804d10d7b0 100644 --- a/gui/browser_osx.mm +++ b/gui/browser_osx.mm @@ -31,6 +31,7 @@ #include "common/algorithm.h" #import <AppKit/NSOpenPanel.h> +#import <Foundation/NSString.h> namespace GUI { @@ -62,7 +63,11 @@ int BrowserDialog::runModal() { NSOpenPanel * panel = [NSOpenPanel openPanel]; [panel setCanChooseDirectories:YES]; if ([panel runModalForTypes:nil] == NSOKButton) { +#ifdef __POWERPC__ const char *filename = [[panel filename] cString]; +#else + const char *filename = [[panel filename] cStringUsingEncoding:NSUTF8StringEncoding]; +#endif _choice = Common::FSNode(filename); choiceMade = true; } @@ -78,4 +83,4 @@ int BrowserDialog::runModal() { return choiceMade; } -}
\ No newline at end of file +} |