Skip to content

Commit

Permalink
Support watchOS and tvOS by dynamically importing Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
florianreinhart committed Mar 5, 2024
1 parent 2f37728 commit c72d7ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Sources/GeodesySpherical/Coordinate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
//
//

#if os(OSX) || os(iOS) || os(visionOS)
import Darwin
#elseif os(Linux)
import Glibc
#if canImport(Darwin)
import Darwin
#else
import Glibc
#endif

public typealias Degrees = Double
Expand Down
8 changes: 4 additions & 4 deletions Tests/GeodesySphericalTests/GeodesySphericalTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
//
//

#if os(OSX) || os(iOS) || os(visionOS)
import Darwin
#elseif os(Linux)
import Glibc
#if canImport(Darwin)
import Darwin
#else
import Glibc
#endif
import XCTest
@testable import GeodesySpherical
Expand Down

0 comments on commit c72d7ea

Please sign in to comment.