Fix GNUstep build

* src/nsfns.m (ns_implicitly_set_icon_type): Don't use UTType if
GNUstep.
This commit is contained in:
Po Lu 2022-05-22 11:18:32 +08:00
parent e5e474baae
commit 714970f596

View file

@ -847,6 +847,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side.
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 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side.
else
#endif
#endif
#endif
#if MAC_OS_X_VERSION_MIN_REQUIRED < 120000
image = [[workspace iconForFileType: @"text"] retain];
#endif