Skip to content

Commit b1acbaf

Browse files
authored
Fix calloc build failure on macOS (#680)
1 parent c51be2f commit b1acbaf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/FoundationEssentials/String/StringProtocol+Essentials.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
internal import _ForSwiftFoundation
1414
#endif
1515

16+
#if canImport(Darwin)
17+
import Darwin
18+
#elseif canImport(Glibc)
19+
import Glibc
20+
#endif
21+
1622
// These provides concrete implementations for String and Substring, enhancing performance over generic StringProtocol.
1723

1824
@available(FoundationPreview 0.4, *)

0 commit comments

Comments
 (0)