Skip to content

Commit 5190db0

Browse files
committed
[Gardening][benchmark] Import MSVCRT on Windows
Import functions from standard C library on Windows.
1 parent 7c95141 commit 5190db0

File tree

8 files changed

+16
-1
lines changed

8 files changed

+16
-1
lines changed

benchmark/single-source/CString.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import TestsUtils
1414
#if os(Linux)
1515
import Glibc
16+
#elseif os(Windows)
17+
import MSVCRT
1618
#else
1719
import Darwin
1820
#endif

benchmark/single-source/Radix2CooleyTukey.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#if os(Linux)
66
import Glibc
7+
#elseif os(Windows)
8+
import MSVCRT
79
#else
810
import Darwin
911
#endif

benchmark/single-source/StringEdits.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import TestsUtils
1414
#if os(Linux)
1515
import Glibc
16+
#elseif os(Windows)
17+
import MSVCRT
1618
#else
1719
import Darwin
1820
#endif

benchmark/single-source/StringMatch.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import TestsUtils
1414
#if os(Linux)
1515
import Glibc
16+
#elseif os(Windows)
17+
import MSVCRT
1618
#else
1719
import Darwin
1820
#endif

benchmark/single-source/Walsh.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import TestsUtils
1414
#if os(Linux)
1515
import Glibc
16+
#elseif os(Windows)
17+
import MSVCRT
1618
#else
1719
import Darwin
1820
#endif
@@ -89,4 +91,3 @@ public func run_Walsh(_ N: Int) {
8991
InverseWalshTransform(&data2)
9092
}
9193
}
92-

benchmark/utils/ArgParse.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#if os(Linux)
1414
import Glibc
15+
#elseif os(Windows)
16+
import MSVCRT
1517
#else
1618
import Darwin
1719
#endif

benchmark/utils/DriverUtils.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#if os(Linux)
1414
import Glibc
15+
#elseif os(Windows)
16+
import MSVCRT
1517
#else
1618
import Darwin
1719
import LibProc

benchmark/utils/TestsUtils.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#if os(Linux)
1414
import Glibc
15+
#elseif os(Windows)
16+
import MSVCRT
1517
#else
1618
import Darwin
1719
#endif

0 commit comments

Comments
 (0)