Skip to content

Commit 864d460

Browse files
authored
Fix build on Windows (#13)
log & exp are declared in `ucrt.corecrt.math`
1 parent 3782207 commit 864d460

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/Algorithms/RandomSample.swift

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
#if canImport(Glibc)
1414
@_implementationOnly
1515
import Glibc
16+
#elseif canImport(ucrt)
17+
@_implementationOnly
18+
import ucrt
1619
#elseif canImport(Darwin)
1720
@_implementationOnly
1821
import Darwin

0 commit comments

Comments
 (0)