Skip to content

Commit 71a2deb

Browse files
committed
Windows: replace MSVCRT with CRT
This is part of the migration path to remove the use of the `visualc` module from the Swift SDK for Windows. The use of the `stdout` and `stderr` types requires the use of the Swift overlay as the C library interfaces are not directly usable with the same name.
1 parent 243beea commit 71a2deb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/TSCBasic/TerminalController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import TSCLibc
1212
#if os(Windows)
13-
import MSVCRT
13+
import CRT
1414
#endif
1515

1616
/// A class to have better control on tty output streams: standard output and standard error.

Sources/TSCLibc/libc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#if canImport(Glibc)
1212
@_exported import Glibc
1313
#elseif os(Windows)
14-
@_exported import MSVCRT
14+
@_exported import CRT
1515
@_exported import WinSDK
1616
#else
1717
@_exported import Darwin.C

0 commit comments

Comments
 (0)