Skip to content

Commit

Permalink
Unconditionally enable use of _CharacterRecognizer’s Equatable confor…
Browse files Browse the repository at this point in the history
…mance if we aren’t building a package
  • Loading branch information
lorentey committed Mar 16, 2023
1 parent 3f7045b commit f7eab39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/RopeModule/Utilities/_CharacterRecognizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ internal typealias _CharacterRecognizer = Unicode._CharacterRecognizer
@available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *)
extension _CharacterRecognizer {
internal func _isKnownEqual(to other: Self) -> Bool {
#if swift(>=5.9)
#if SWIFT_PACKAGE
#if swift(>=5.9)
if #available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *) { // SwiftStdlib 5.9
return self == other
}
#endif
#endif
return false
#else // !SWIFT_PACKAGE
return self == other
#endif
}
}

Expand Down

0 comments on commit f7eab39

Please sign in to comment.