changeset 2075:c020ad267ae2

Mac: Fix building pre-mountain lion 10.8.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 24 May 2020 23:32:59 +0000
parents 1a196ada0bc9
children a42267bf4208
files mac/dw.m
diffstat 1 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Thu May 21 14:17:36 2020 +0000
+++ b/mac/dw.m	Sun May 24 23:32:59 2020 +0000
@@ -1340,14 +1340,18 @@
 
 /* Subclass for the application class */
 @interface DWAppDel : NSObject
-#ifdef BUILDING_FOR_SNOW_LEOPARD
+#ifdef BUILDING_FOR_MOUNTAIN_LION
 <NSApplicationDelegate, NSUserNotificationCenterDelegate>
+#elif defined(BUILDING_FOR_SNOW_LEOPARD)
+<NSApplicationDelegate>
 #endif
 {
 }
 -(NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender;
 -(void)applicationDidFinishLaunching:(NSNotification *)aNotification;
+#ifdef BUILDING_FOR_MOUNTAIN_LION
 -(BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification;
+#endif
 @end
 
 /* Apparently the WKWebKit API is only enabled on intel 64bit...
@@ -1438,16 +1442,19 @@
 {
 #ifdef BUILDING_FOR_MOJAVE
     if (@available(macOS 10.14, *)) {} else
-#endif
+#elif defined(BUILDING_FOR_MOUNTAIN_LION)
     {
         NSUserNotificationCenter* unc = [NSUserNotificationCenter defaultUserNotificationCenter];
         unc.delegate = self;
     }
-}
+#endif
+}
+#ifdef BUILDING_FOR_MOUNTAIN_LION
 -(BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification
 {
     return YES;
 }
+#endif
 @end
 
 /* Subclass for a top-level window */