diff options
author | Alan Third <alan@idiocy.org> | 2021-09-27 14:23:02 +0100 |
---|---|---|
committer | Alan Third <alan@idiocy.org> | 2021-09-27 14:24:25 +0100 |
commit | 75f2739e1ae8b193e495f0ec611b408de7204719 (patch) | |
tree | e6326fcf4a25558089e24b257c6e15c19e5afcff /src/nsfns.m | |
parent | 0f4b55dc8d551f266ae8cc36d94bcd216a80754b (diff) | |
download | emacs-75f2739e1ae8b193e495f0ec611b408de7204719.tar.gz |
Fix GNUstep build failure
* src/nsfns.m (Fns_hide_emacs): NSRunningApplication is only available
in GNUstep 0.27 and above.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r-- | src/nsfns.m | 2 |
1 files changed, 2 insertions, 0 deletions
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 |