From: Mattias EngdegÄrd Date: Mon, 5 Aug 2024 19:27:17 +0000 (+0200) Subject: Avoid warning when building on macOS versions < 14 (bug#72440) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d70dad508f0be367685b4ffe5f6e135539d278cc;p=emacs.git Avoid warning when building on macOS versions < 14 (bug#72440) * src/nsterm.m ([EmacsView initFrameFromEmacs:]): The clipsToBounds property of NSView is only public from macOS 14 on. (cherry picked from commit ee371f55b359b509cd381c87e78b5f5ee9311f37) --- diff --git a/src/nsterm.m b/src/nsterm.m index be9142f7a4a..5c2e6446f7e 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -8073,9 +8073,10 @@ ns_in_echo_area (void) #ifdef NS_IMPL_COCOA old_title = 0; maximizing_resize = NO; +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 140000 /* Restore to default before macOS 14 (bug#72440). */ - if ([self respondsToSelector:@selector(setClipsToBounds:)]) - [self setClipsToBounds: YES]; + [self setClipsToBounds: YES]; +#endif #endif #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400