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 7a70a1b commit 92f7dd1Copy full SHA for 92f7dd1
Sources/Foundation/Data.swift
@@ -36,7 +36,11 @@
36
@usableFromInline let memcpy = Musl.memcpy
37
@usableFromInline let memcmp = Musl.memcmp
38
#elseif canImport(WASILibc)
39
+#if swift(>=6.0)
40
+private import wasi_emulated_mman
41
+#else
42
import wasi_emulated_mman
43
+#endif
44
@usableFromInline let calloc = WASILibc.calloc
45
@usableFromInline let malloc = WASILibc.malloc
46
@usableFromInline let free = WASILibc.free
0 commit comments