mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Try to avoid objc_msgSend
This commit is contained in:
parent
c3ba223fe2
commit
0733fd41aa
@ -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(*)(id, SEL))objc_msgSend_stret)([NSProcessInfo processInfo], @selector(operatingSystemVersion));
|
||||
*major = (int)version.majorVersion;
|
||||
*minor = (int)version.minorVersion;
|
||||
NSMyOSVersion version = (NSMyOSVersion)[[NSProcessInfo processInfo] operatingSystemVersion];
|
||||
*major = (int)version.majorVersion;
|
||||
*minor = (int)version.minorVersion;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user