Skip to content

Commit a8a0afa

Browse files
authored
Utility: disable Signal on Windows (#605)
Windows does not support the concept of signals and has no equivalent to it. Simply disable the interface to ensure that we do not accidentally rely on it somewhere.
1 parent 74520d0 commit a8a0afa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SwiftDocCUtilities/Utility/Signal.swift

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import Foundation
1212

1313
/// A handler that intercepts system signal-events.
14+
#if !os(Windows)
1415
public struct Signal {
1516
/// List of all system signals that interrupt the program execution.
1617
public static let all = [SIGHUP, SIGINT, SIGQUIT, SIGABRT, SIGKILL, SIGALRM, SIGTERM]
@@ -35,3 +36,4 @@ public struct Signal {
3536
}
3637
}
3738
}
39+
#endif

0 commit comments

Comments
 (0)