From 1dba0ca278f8185912e8d39b2af05fc6739b65f8 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Tue, 29 Jun 2021 22:17:20 +0100 Subject: [PATCH] Fix NS port built with gcc * src/nsterm.m (ns_relocate): The NSArray shorthand notation doesn't work in GCC. --- src/nsterm.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nsterm.m b/src/nsterm.m index 8497138039c..dc5ecc45640 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -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] -- 2.39.2