From: Po Lu Date: Sun, 22 May 2022 03:18:32 +0000 (+0800) Subject: Fix GNUstep build X-Git-Tag: emacs-29.0.90~1910^2~534 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=714970f5967f2153bb95e35823dbd917e0e5b60b;p=emacs.git Fix GNUstep build * src/nsfns.m (ns_implicitly_set_icon_type): Don't use UTType if GNUstep. --- diff --git a/src/nsfns.m b/src/nsfns.m index a2f9c26b550..818ba6f40f1 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -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