mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Gardening][benchmark] Import MSVCRT on Windows
Import functions from standard C library on Windows.
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
import TestsUtils
|
||||
#if os(Linux)
|
||||
import Glibc
|
||||
#elseif os(Windows)
|
||||
import MSVCRT
|
||||
#else
|
||||
import Darwin
|
||||
#endif
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#if os(Linux)
|
||||
import Glibc
|
||||
#elseif os(Windows)
|
||||
import MSVCRT
|
||||
#else
|
||||
import Darwin
|
||||
#endif
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
import TestsUtils
|
||||
#if os(Linux)
|
||||
import Glibc
|
||||
#elseif os(Windows)
|
||||
import MSVCRT
|
||||
#else
|
||||
import Darwin
|
||||
#endif
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
import TestsUtils
|
||||
#if os(Linux)
|
||||
import Glibc
|
||||
#elseif os(Windows)
|
||||
import MSVCRT
|
||||
#else
|
||||
import Darwin
|
||||
#endif
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
import TestsUtils
|
||||
#if os(Linux)
|
||||
import Glibc
|
||||
#elseif os(Windows)
|
||||
import MSVCRT
|
||||
#else
|
||||
import Darwin
|
||||
#endif
|
||||
@@ -89,4 +91,3 @@ public func run_Walsh(_ N: Int) {
|
||||
InverseWalshTransform(&data2)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
#if os(Linux)
|
||||
import Glibc
|
||||
#elseif os(Windows)
|
||||
import MSVCRT
|
||||
#else
|
||||
import Darwin
|
||||
#endif
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
#if os(Linux)
|
||||
import Glibc
|
||||
#elseif os(Windows)
|
||||
import MSVCRT
|
||||
#else
|
||||
import Darwin
|
||||
import LibProc
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
#if os(Linux)
|
||||
import Glibc
|
||||
#elseif os(Windows)
|
||||
import MSVCRT
|
||||
#else
|
||||
import Darwin
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user