We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e527d commit f824922Copy full SHA for f824922
stdlib/public/stubs/Availability.mm
@@ -21,17 +21,6 @@
21
#include "swift/Runtime/Debug.h"
22
#include <TargetConditionals.h>
23
#include "../SwiftShims/FoundationShims.h"
24
-
25
-#if __has_include(<os/system_version.h>)
26
-#include <os/system_version.h>
27
28
-static os_system_version_s getOSVersion() {
29
- struct os_system_version_s vers = { 0, 0, 0 };
30
- os_system_version_get_current_version(&vers);
31
- return vers;
32
-}
33
34
-#else
35
#include <dlfcn.h>
36
37
struct os_system_version_s {
@@ -50,8 +39,6 @@ static os_system_version_s getOSVersion() {
50
39
return vers;
51
40
}
52
41
53
-#endif
54
55
42
using namespace swift;
56
43
57
44
/// Return the version of the operating system currently running for use in
0 commit comments