]> git.eshelyaron.com Git - emacs.git/commit
Allow use of run-time OS version checks on macOS (bug#27810)
authorAlan Third <alan@idiocy.org>
Thu, 6 Jul 2017 22:10:49 +0000 (23:10 +0100)
committerAlan Third <alan@idiocy.org>
Wed, 16 Aug 2017 19:56:55 +0000 (20:56 +0100)
commit69f2b755f44a5e447b3ad482ce0b409764fa10e6
tree10765f8a1a48d03ed87f02321f0928e21c2567cf
parent3505b77ad7b54e5208685b6e229c76387120d5a1
Allow use of run-time OS version checks on macOS (bug#27810)

* src/nsterm.h (NSWindowTabbingMode): Define in pre-Sierra macOS.
(MAC_OS_X_VERSION_10_6, MAC_OS_X_VERSION_10_7, MAC_OS_X_VERSION_10_8,
MAC_OS_X_VERSION_10_9, MAC_OS_X_VERSION_10_12, HAVE_NATIVE_FS): Remove
defines.
(NSWindowStyleMaskFullScreen,
NSWindowCollectionBehaviorFullScreenPrimary,
NSApplicationPresentationFullScreen,
NSApplicationPresentationAutoHideToolbar): Define in macOS 10.6.
* src/nsterm.m (colorForEmacsRed, colorUsingDefaultColorSpace,
check_native_fs, ns_read_socket, ns_select, runAlertPanel,
initFrameFromEmacs, windowDidMiniaturize, windowDidEnterFullScreen,
windowDidExitFullScreen, isFullscreen, updateCollectionBehavior,
toggleFullScreen, constrainFrameRect, scrollerWidth, syms_of_nsterm):
Allow use of run-time checks and replace version check macros.
* src/nsfns.m (ns_screen_name): Use run-time OS version checks.
* src/macfont.m (macfont_draw): Use run-time OS version checks.
* src/nsmenu.m (menuWillOpen): Use run-time OS version checks.

Co-authored-by: Charles A. Roelli <charles@aurox.ch>
src/macfont.m
src/nsfns.m
src/nsmenu.m
src/nsterm.h
src/nsterm.m