From: Alan Third Date: Tue, 29 Jun 2021 21:17:20 +0000 (+0100) Subject: Fix NS port built with gcc X-Git-Tag: emacs-28.0.90~2007 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1dba0ca278f8185912e8d39b2af05fc6739b65f8;p=emacs.git Fix NS port built with gcc * src/nsterm.m (ns_relocate): The NSArray shorthand notation doesn't work in GCC. --- 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]