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:
Alan Third 2021-06-29 22:17:20 +01:00
parent 94a2ef436b
commit 1dba0ca278

View file

@ -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]