Skip to content

Commit 71197ae

Browse files
committed
Import Android for isatty
1 parent 8e60b2e commit 71197ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/swift-format/Utilities/TTY.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Foundation
14+
#if canImport(Android)
15+
import Android
16+
#endif
1417

1518
/// Returns a value indicating whether or not the stream is a TTY.
1619
func isTTY(_ fileHandle: FileHandle) -> Bool {

0 commit comments

Comments
 (0)