File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -995,6 +995,14 @@ extension POSIXErrorCode: _ErrorCodeProtocol {
995
995
public typealias _ErrorType = POSIXError
996
996
}
997
997
998
+ #if os(Windows)
999
+ extension POSIXErrorCode {
1000
+ public static var ECANCELED : POSIXErrorCode {
1001
+ return POSIXError . Code ( rawValue: WinSDK . ECANCELED) !
1002
+ }
1003
+ }
1004
+ #endif
1005
+
998
1006
extension POSIXError {
999
1007
/// Operation not permitted.
1000
1008
public static var EPERM : POSIXError . Code { return . EPERM }
@@ -1313,10 +1321,10 @@ extension POSIXError {
1313
1321
public static var EBADMACHO : POSIXError . Code { return . EBADMACHO }
1314
1322
#endif
1315
1323
1316
- #if !os(Windows)
1317
1324
/// Operation canceled.
1318
1325
public static var ECANCELED : POSIXError . Code { return . ECANCELED }
1319
1326
1327
+ #if !os(Windows)
1320
1328
/// Identifier removed.
1321
1329
public static var EIDRM : POSIXError . Code { return . EIDRM }
1322
1330
You can’t perform that action at this time.
0 commit comments