Revert "Try to avoid objc_msgSend"

This reverts commit 0733fd41aa257a59e0781e175bd9c4455d5271ff.
This commit is contained in:
twinaphex 2020-12-27 18:05:45 +01:00
parent 0733fd41aa
commit 7145ec4793

View File

@ -319,9 +319,9 @@ static void frontend_darwin_get_os(char *s, size_t len, int *major, int *minor)
NSInteger minorVersion;
NSInteger patchVersion;
} NSMyOSVersion;
NSMyOSVersion version = (NSMyOSVersion)[[NSProcessInfo processInfo] operatingSystemVersion];
*major = (int)version.majorVersion;
*minor = (int)version.minorVersion;
NSMyOSVersion version = ((NSMyOSVersion(*)(id, SEL))objc_msgSend_stret)([NSProcessInfo processInfo], @selector(operatingSystemVersion));
*major = (int)version.majorVersion;
*minor = (int)version.minorVersion;
}
else
{