Fix NS port built with gcc
* src/nsterm.m (ns_relocate): The NSArray shorthand notation doesn't work in GCC.
This commit is contained in:
parent
94a2ef436b
commit
1dba0ca278
1 changed files with 3 additions and 1 deletions
|
@ -511,7 +511,9 @@ - (NSColor *)colorUsingDefaultColorSpace
|
|||
NSBundle *bundle = [NSBundle mainBundle];
|
||||
NSString *root = [bundle bundlePath];
|
||||
NSString *original = [NSString stringWithUTF8String:epath];
|
||||
NSString *fixedPath = [NSString pathWithComponents:@[root, original]];
|
||||
NSString *fixedPath = [NSString pathWithComponents:
|
||||
[NSArray arrayWithObjects:
|
||||
root, original, nil]];
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
|
||||
if (![original isAbsolutePath]
|
||||
|
|
Loading…
Add table
Reference in a new issue