From 75f2739e1ae8b193e495f0ec611b408de7204719 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Mon, 27 Sep 2021 14:23:02 +0100 Subject: Fix GNUstep build failure * src/nsfns.m (Fns_hide_emacs): NSRunningApplication is only available in GNUstep 0.27 and above. --- src/nsfns.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nsfns.m') diff --git a/src/nsfns.m b/src/nsfns.m index 07bcab1816b..906c5c934f5 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -1966,12 +1966,14 @@ is layered in front of the windows of other applications. */) [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 -- cgit v1.2.3