]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix NS port built with gcc
authorAlan Third <alan@idiocy.org>
Tue, 29 Jun 2021 21:17:20 +0000 (22:17 +0100)
committerAlan Third <alan@idiocy.org>
Tue, 29 Jun 2021 21:18:33 +0000 (22:18 +0100)
* src/nsterm.m (ns_relocate): The NSArray shorthand notation doesn't
work in GCC.

src/nsterm.m

index 8497138039ca04344edb51b6859bf7908c255b3c..dc5ecc4564038e9a6c86d760759b6e833dfdc0df 100644 (file)
@@ -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]