diff options
author | marc_culler <marc.culler@gmail.com> | 2020-12-13 23:33:17 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2020-12-13 23:33:17 (GMT) |
commit | 26a3200d7f06438c5bc14dfc762ba11e82e34e57 (patch) | |
tree | 0aabd708e1bb6b7881f23aec672d77000be0ddb7 /macosx/tkMacOSXWm.c | |
parent | f318909d3229718a7cb04b434b75aa153243d4e4 (diff) | |
download | tk-26a3200d7f06438c5bc14dfc762ba11e82e34e57.zip tk-26a3200d7f06438c5bc14dfc762ba11e82e34e57.tar.gz tk-26a3200d7f06438c5bc14dfc762ba11e82e34e57.tar.bz2 |
Fix build in macOS 10.11 El Capitan: @available is not available in 10.11
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 942a6f8..045d8d2 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -6900,7 +6900,7 @@ ApplyWindowAttributeFlagChanges( * to the screen size. (For 10.11 and up, only) */ - if (@available(macOS 10.11, *)) { + if ([NSApp macOSVersion] >= 101100) { NSSize screenSize = [[macWindow screen] frame].size; [macWindow setMaxFullScreenContentSize:screenSize]; } |