From 71a2deba1d3b15e55ca4c836bd06348b1caa600d Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 18 Oct 2020 12:22:17 -0700 Subject: [PATCH] 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. --- Sources/TSCBasic/TerminalController.swift | 2 +- Sources/TSCLibc/libc.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/TSCBasic/TerminalController.swift b/Sources/TSCBasic/TerminalController.swift index de3fbb50..01a8253a 100644 --- a/Sources/TSCBasic/TerminalController.swift +++ b/Sources/TSCBasic/TerminalController.swift @@ -10,7 +10,7 @@ import TSCLibc #if os(Windows) -import MSVCRT +import CRT #endif /// A class to have better control on tty output streams: standard output and standard error. diff --git a/Sources/TSCLibc/libc.swift b/Sources/TSCLibc/libc.swift index 02796013..db1ac90c 100644 --- a/Sources/TSCLibc/libc.swift +++ b/Sources/TSCLibc/libc.swift @@ -11,7 +11,7 @@ #if canImport(Glibc) @_exported import Glibc #elseif os(Windows) -@_exported import MSVCRT +@_exported import CRT @_exported import WinSDK #else @_exported import Darwin.C