Open heroims opened 6 years ago
I implement it myself.
int __isOSVersionAtLeast(int major, int minor, int patch) { NSOperatingSystemVersion version; version.majorVersion = major; version.minorVersion = minor; version.patchVersion = patch; return [[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:version]; }
llvm 5.0.1 support the new syntax
When I use
if (@available(iOS 10.0, *)) {}
,It also give me a error!Undefined symbols for architecture x86_64: "___isOSVersionAtLeast", referenced from: