summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
authorculler <culler>2018-12-01 18:05:32 (GMT)
committerculler <culler>2018-12-01 18:05:32 (GMT)
commitd8ab4883f4aac793d234ce23967dd01f4520a290 (patch)
tree39d07806dd2e5d3316b75d8161ba25dd59e52fdd /macosx/tkMacOSXWm.c
parent9ad8f59dd2d38ae5e225f1f9e2a54b6c8a4e4718 (diff)
downloadtk-d8ab4883f4aac793d234ce23967dd01f4520a290.zip
tk-d8ab4883f4aac793d234ce23967dd01f4520a290.tar.gz
tk-d8ab4883f4aac793d234ce23967dd01f4520a290.tar.bz2
Fix the build on Sierra and earlier.
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r--macosx/tkMacOSXWm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 97fd203..f69aa79 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -5568,6 +5568,7 @@ WmWinTabbingId(
int objc, /* Number of arguments. */
Tcl_Obj * const objv[]) /* Argument objects. */
{
+#if !(MAC_OS_X_VERSION_MAX_ALLOWED < 101200)
Tcl_Obj *result = NULL;
NSString *idString;
NSWindow *win = TkMacOSXDrawableWindow(winPtr->window);
@@ -5588,6 +5589,7 @@ WmWinTabbingId(
[win setTabbingIdentifier: newIdString];
return TCL_OK;
}
+#endif
return TCL_ERROR;
}
@@ -6466,7 +6468,7 @@ ApplyWindowAttributeFlagChanges(
*/
#if !(MAC_OS_X_VERSION_MAX_ALLOWED < 1070)
- if (!(macWindow.styleMask & NSWindowStyleMaskUtilityWindow)) {
+ if (!(macWindow.styleMask & NSUtilityWindowMask)) {
b |= NSWindowCollectionBehaviorFullScreenPrimary;
}
#endif