Skip to content

Commit 9580a2e

Browse files
committed
Foundation: migrate to the new CRT module
The Windows environment calls the library `CRT`. Additionally, this enables the removal of the `visualc` module from the Swift SDK overlay for Windows.
1 parent cfef71f commit 9580a2e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Sources/Foundation/FileManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fileprivate let UF_HIDDEN: Int32 = 1
1717

1818
@_implementationOnly import CoreFoundation
1919
#if os(Windows)
20-
import MSVCRT
20+
import CRT
2121
#endif
2222

2323
#if os(Windows)

Sources/Foundation/NSError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
import Darwin
1515
#elseif canImport(Glibc)
1616
import Glibc
17-
#elseif canImport(MSVCRT)
18-
import MSVCRT
17+
#elseif canImport(CRT)
18+
import CRT
1919
#endif
2020

2121
@_implementationOnly import CoreFoundation

Sources/Foundation/NSSwiftRuntime.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#elseif os(Linux) || os(Android) || CYGWIN
1818
@_exported import Glibc
1919
#elseif os(Windows)
20-
@_exported import MSVCRT
20+
@_exported import CRT
2121
#endif
2222

2323
@_exported import Dispatch

Sources/Tools/plutil/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import SwiftFoundation
1212
#elseif canImport(Glibc)
1313
import Foundation
1414
import Glibc
15-
#elseif canImport(MSVCRT)
15+
#elseif canImport(CRT)
1616
import Foundation
17-
import MSVCRT
17+
import CRT
1818
#endif
1919

2020
func help() -> Int32 {

Tests/Foundation/HTTPServer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
import Dispatch
1616

17-
#if canImport(MSVCRT)
18-
import MSVCRT
17+
#if canImport(CRT)
18+
import CRT
1919
import WinSDK
2020
#elseif canImport(Darwin)
2121
import Darwin

0 commit comments

Comments
 (0)