From 864d460a07f8475700cb6a77ea4cc902b94b5f1c Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Mon, 12 Oct 2020 17:40:25 +0300 Subject: [PATCH] Fix build on Windows (#13) log & exp are declared in `ucrt.corecrt.math` --- Sources/Algorithms/RandomSample.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Algorithms/RandomSample.swift b/Sources/Algorithms/RandomSample.swift index a42eccd..c8ffd4d 100644 --- a/Sources/Algorithms/RandomSample.swift +++ b/Sources/Algorithms/RandomSample.swift @@ -13,6 +13,9 @@ #if canImport(Glibc) @_implementationOnly import Glibc +#elseif canImport(ucrt) +@_implementationOnly +import ucrt #elseif canImport(Darwin) @_implementationOnly import Darwin