Buildbot compile fix for os x cross compile
svn-id: r46592
This commit is contained in:
parent
b2c170168e
commit
b21679e56e
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue