mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-05-28 00:21:57 +02:00
Check if method exists, not using macro condition
macro condition depends on MACOSX_DEPLOYMENT_TARGET variable
This commit is contained in:
@@ -285,14 +285,12 @@ gui_mch_init(void)
|
||||
[[MMBackend sharedInstance] addToMRU:filenames];
|
||||
}
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10
|
||||
{
|
||||
if ([NSProcessInfo instancesRespondToSelector:@selector(isOperatingSystemAtLeastVersion:)]) {
|
||||
NSOperatingSystemVersion version = {10, 13, 0};
|
||||
|
||||
is_macos_high_sierra_or_later =
|
||||
[[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:version];
|
||||
}
|
||||
#endif
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user