| 1234567891011121314151617181920 |
- /*
- 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
|