mirror of
https://github.com/apple/swift-system
synced 2026-11-24 04:38:14 +00:00
21 lines
435 B
Swift
21 lines
435 B
Swift
/*
|
|
This source file is part of the Swift System open source project
|
|
|
|
Copyright (c) 2024 Apple Inc. and the Swift System project authors
|
|
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
|
|
See https://swift.org/LICENSE.txt for license information
|
|
*/
|
|
|
|
#if os(Windows)
|
|
|
|
import WinSDK
|
|
|
|
extension Errno {
|
|
internal init(windowsError: DWORD) {
|
|
self.init(rawValue: _mapWindowsErrorToErrno(windowsError))
|
|
}
|
|
}
|
|
|
|
#endif
|