Fix GNUstep build failure

* src/nsfns.m (Fns_hide_emacs): NSRunningApplication is only available
in GNUstep 0.27 and above.
This commit is contained in:
Alan Third 2021-09-27 14:23:02 +01:00
parent 0f4b55dc8d
commit 75f2739e1a

View file

@ -1966,12 +1966,14 @@ Frames are listed from topmost (first) to bottommost (last). */)
[NSApp unhide: NSApp];
[NSApp activateIgnoringOtherApps: YES];
}
#if GNUSTEP_GUI_MAJOR_VERSION > 0 || GNUSTEP_GUI_MINOR_VERSION >= 27
else if (EQ (on, intern ("activate-front")))
{
[NSApp unhide: NSApp];
[[NSRunningApplication currentApplication]
activateWithOptions: NSApplicationActivateIgnoringOtherApps];
}
#endif
else if (NILP (on))
[NSApp unhide: NSApp];
else