From b21679e56ee76be47bf5fb10bcd0592b7b19e6f2 Mon Sep 17 00:00:00 2001 From: Oystein Eftevaag Date: Sat, 26 Dec 2009 16:00:41 +0000 Subject: [PATCH] Buildbot compile fix for os x cross compile svn-id: r46592 --- gui/browser_osx.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/browser_osx.mm b/gui/browser_osx.mm index 9b4aa81afb7..804d10d7b0d 100644 --- a/gui/browser_osx.mm +++ b/gui/browser_osx.mm @@ -31,6 +31,7 @@ #include "common/algorithm.h" #import +#import 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 +}