mirror of
https://github.com/apple/swift-foundation.git
synced 2025-05-24 06:20:09 +08:00
Fix calloc build failure on macOS (#680)
This commit is contained in:
parent
c51be2f7a0
commit
b1acbafbca
@ -13,6 +13,12 @@
|
|||||||
internal import _ForSwiftFoundation
|
internal import _ForSwiftFoundation
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if canImport(Darwin)
|
||||||
|
import Darwin
|
||||||
|
#elseif canImport(Glibc)
|
||||||
|
import Glibc
|
||||||
|
#endif
|
||||||
|
|
||||||
// These provides concrete implementations for String and Substring, enhancing performance over generic StringProtocol.
|
// These provides concrete implementations for String and Substring, enhancing performance over generic StringProtocol.
|
||||||
|
|
||||||
@available(FoundationPreview 0.4, *)
|
@available(FoundationPreview 0.4, *)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user