aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd2024-08-05 21:27:17 +0200
committerMattias EngdegÄrd2024-08-05 21:27:17 +0200
commitee371f55b359b509cd381c87e78b5f5ee9311f37 (patch)
treeeb6da3408a1dce6aec81bf437eedf1a3416d243c /src
parent3ad4623bec49428fda34a475641eae9f1f33fc78 (diff)
downloademacs-ee371f55b359b509cd381c87e78b5f5ee9311f37.tar.gz
emacs-ee371f55b359b509cd381c87e78b5f5ee9311f37.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m5
1 files changed, 3 insertions, 2 deletions
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)
8073#ifdef NS_IMPL_COCOA 8073#ifdef NS_IMPL_COCOA
8074 old_title = 0; 8074 old_title = 0;
8075 maximizing_resize = NO; 8075 maximizing_resize = NO;
8076#if MAC_OS_X_VERSION_MAX_ALLOWED >= 140000
8076 /* Restore to default before macOS 14 (bug#72440). */ 8077 /* Restore to default before macOS 14 (bug#72440). */
8077 if ([self respondsToSelector:@selector(setClipsToBounds:)]) 8078 [self setClipsToBounds: YES];
8078 [self setClipsToBounds: YES]; 8079#endif
8079#endif 8080#endif
8080 8081
8081#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 8082#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400