Check if method exists, not using macro condition

macro condition depends on MACOSX_DEPLOYMENT_TARGET variable
This commit is contained in:
ichizok
2018-03-26 21:43:58 +09:00
parent 54c198e2d1
commit d7760807dd
+1 -3
View File
@@ -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;
}