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:
@@ -511,7 +511,9 @@ ns_relocate (const char *epath)
|
||||
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]
|
||||
|
||||
Reference in New Issue
Block a user