Mercurial > dwindows
changeset 2076:a42267bf4208
Mac: Second try that hopefully builds on all versions.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 24 May 2020 23:45:32 +0000 |
parents | c020ad267ae2 |
children | 9101babfc421 |
files | mac/dw.m |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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