emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 75f2739: Fix GNUstep build failure


From: Alan Third
Subject: master 75f2739: Fix GNUstep build failure
Date: Mon, 27 Sep 2021 09:24:46 -0400 (EDT)

branch: master
commit 75f2739e1ae8b193e495f0ec611b408de7204719
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    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(+)

diff --git a/src/nsfns.m b/src/nsfns.m
index 07bcab1..906c5c9 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]