Skip to content

Foundation: migrate to the new CRT module #2906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Foundation/FileManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fileprivate let UF_HIDDEN: Int32 = 1

@_implementationOnly import CoreFoundation
#if os(Windows)
import MSVCRT
import CRT
#endif

#if os(Windows)
Expand Down
4 changes: 2 additions & 2 deletions Sources/Foundation/NSError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(MSVCRT)
import MSVCRT
#elseif canImport(CRT)
import CRT
#endif

@_implementationOnly import CoreFoundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/Foundation/NSSwiftRuntime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elseif os(Linux) || os(Android) || CYGWIN
@_exported import Glibc
#elseif os(Windows)
@_exported import MSVCRT
@_exported import CRT
#endif

@_exported import Dispatch
Expand Down
4 changes: 2 additions & 2 deletions Sources/Tools/plutil/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import SwiftFoundation
#elseif canImport(Glibc)
import Foundation
import Glibc
#elseif canImport(MSVCRT)
#elseif canImport(CRT)
import Foundation
import MSVCRT
import CRT
#endif

func help() -> Int32 {
Expand Down
4 changes: 2 additions & 2 deletions Tests/Foundation/HTTPServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

import Dispatch

#if canImport(MSVCRT)
import MSVCRT
#if canImport(CRT)
import CRT
import WinSDK
#elseif canImport(Darwin)
import Darwin
Expand Down