File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ fileprivate let _close = Glibc.close(_:)
25
25
#endif
26
26
27
27
#if canImport(WinSDK)
28
- // We used to get the copy that was re-exported by CoreFoundation
28
+ // We used to get the alias that was re-exported by CoreFoundation
29
29
// but we want to explicitly depend on its types in this file,
30
30
// so we need to make sure Swift doesn't think it's @_implementationOnly.
31
- import WinSDK
31
+ import struct WinSDK. HANDLE
32
32
#endif
33
33
34
34
extension NSError {
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ import Darwin
14
14
#endif
15
15
16
16
#if canImport(WinSDK)
17
- // We used to get the copy that was re-exported by CoreFoundation
17
+ // We used to get the alias that was re-exported by CoreFoundation
18
18
// but we want to explicitly depend on its types in this file,
19
19
// so we need to make sure Swift doesn't think it's @_implementationOnly.
20
- import WinSDK
20
+ import struct WinSDK. HANDLE
21
21
#endif
22
22
23
23
extension Process {
@@ -1162,6 +1162,13 @@ open class Process: NSObject {
1162
1162
}
1163
1163
1164
1164
extension Process {
1165
-
1166
1165
public static let didTerminateNotification = NSNotification . Name ( rawValue: " NSTaskDidTerminateNotification " )
1167
1166
}
1167
+
1168
+ #if os(Windows)
1169
+ // FIXME: This is a workaround for CoreFoundation/WinSDK overload
1170
+ // of the same constants with different types. We should prevent
1171
+ // CoreFoundation from re-exporting them.
1172
+ fileprivate let HANDLE_FLAG_INHERIT = DWORD ( 0x00000001 )
1173
+ fileprivate let STARTF_USESTDHANDLES = DWORD ( 0x00000100 )
1174
+ #endif
You can’t perform that action at this time.
0 commit comments