# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1590363179 0 # Node ID c020ad267ae2e425e47ae966528719b28b500a64 # Parent 1a196ada0bc90ebfd6066818f6de22ec22dbfe47 Mac: Fix building pre-mountain lion 10.8. diff -r 1a196ada0bc9 -r c020ad267ae2 mac/dw.m --- 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 +#elif defined(BUILDING_FOR_SNOW_LEOPARD) + #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 */