]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix GNUstep build
authorPo Lu <luangruo@yahoo.com>
Sun, 22 May 2022 03:18:32 +0000 (11:18 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 22 May 2022 03:18:32 +0000 (11:18 +0800)
* src/nsfns.m (ns_implicitly_set_icon_type): Don't use UTType if
GNUstep.

src/nsfns.m

index a2f9c26b550988ef192f763ad1fd3196d953483b..818ba6f40f186697ac0d4916a9cd6f20ef8a586f 100644 (file)
@@ -847,6 +847,7 @@ ns_implicitly_set_icon_type (struct frame *f)
 
   if (image == nil)
     {
+#ifndef NS_IMPL_GNUSTEP
 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 120000
 #if MAC_OS_X_VERSION_MIN_REQUIRED < 120000
       if ([workspace respondsToSelector: @selector (iconForContentType:)])
@@ -857,6 +858,7 @@ ns_implicitly_set_icon_type (struct frame *f)
       else
 #endif
 #endif
+#endif
 #if MAC_OS_X_VERSION_MIN_REQUIRED < 120000
        image = [[workspace iconForFileType: @"text"] retain];
 #endif