mirror of
https://github.com/apple/swift-foundation.git
synced 2025-05-21 13:02:30 +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
|
||||
#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.
|
||||
|
||||
@available(FoundationPreview 0.4, *)
|
||||
|
Loading…
x
Reference in New Issue
Block a user