# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1590363932 0 # Node ID a42267bf420865167ae76a666c2b62a71ebede33 # Parent c020ad267ae2e425e47ae966528719b28b500a64 Mac: Second try that hopefully builds on all versions. diff -r c020ad267ae2 -r a42267bf4208 mac/dw.m --- a/mac/dw.m Sun May 24 23:32:59 2020 +0000 +++ b/mac/dw.m Sun May 24 23:45:32 2020 +0000 @@ -1442,12 +1442,15 @@ { #ifdef BUILDING_FOR_MOJAVE if (@available(macOS 10.14, *)) {} else -#elif defined(BUILDING_FOR_MOUNTAIN_LION) - { +#else + { +#ifdef BUILDING_FOR_MOUNTAIN_LION NSUserNotificationCenter* unc = [NSUserNotificationCenter defaultUserNotificationCenter]; unc.delegate = self; - } -#endif +#endif + } +#endif + return; } #ifdef BUILDING_FOR_MOUNTAIN_LION -(BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification