emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 1dba0ca: Fix NS port built with gcc


From: Alan Third
Subject: master 1dba0ca: Fix NS port built with gcc
Date: Tue, 29 Jun 2021 17:18:39 -0400 (EDT)

branch: master
commit 1dba0ca278f8185912e8d39b2af05fc6739b65f8
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    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 8497138..dc5ecc4 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]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]