Skip to content

Commit

Permalink
Fix: _NoObjCBridge implementations using #if !os(…) for non-watchOS…
Browse files Browse the repository at this point in the history
…/tvOS code

Fixed for real this time.
  • Loading branch information
capnslipp committed Dec 28, 2022
1 parent 98426ac commit a88a765
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Sources/Float4x4/Float4x4_NoObjCBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public struct Float4x4



#if !TARGET_OS_WATCH
#if !os(watchOS)
// MARK: CATransform3D Conversion

/// Converts a `Float4x4` struct to `CATransform3D` struct using passing-individual-members initialization.
Expand All @@ -232,7 +232,7 @@ public struct Float4x4
Float(caValue.m41), Float(caValue.m42), Float(caValue.m43), Float(caValue.m44)
)
}
#endif // !TARGET_OS_WATCH
#endif // !watchOS



Expand Down
12 changes: 6 additions & 6 deletions Sources/FloatQuaternion/FloatQuaternion_NoObjCBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public struct FloatQuaternion



#if !TARGET_OS_WATCH
#if !os(watchOS)
// MARK: GLKit Conversion

/// Converts a `FloatQuaternion` struct to `GLKQuaternion` struct using passing-individual-members initialization.
Expand All @@ -74,11 +74,11 @@ public struct FloatQuaternion
@_transparent public func FloatQuaternionFromGLK(_ glkValue:GLKQuaternion) -> FloatQuaternion {
return FloatQuaternion(ix: glkValue.x, iy: glkValue.y, iz: glkValue.z, r: glkValue.w)
}
#endif // !TARGET_OS_WATCH
#endif // !watchOS



#if !TARGET_OS_TV
#if !os(tvOS)
// MARK: CoreMotion Conversion

/// Converts a `FloatQuaternion` struct to `CMQuaternion` struct using passing-individual-members initialization.
Expand All @@ -89,11 +89,11 @@ public struct FloatQuaternion
@_transparent public func FloatQuaternionFromCM(_ cmValue:CMQuaternion) -> FloatQuaternion {
return FloatQuaternion(ix: Float(cmValue.x), iy: Float(cmValue.y), iz: Float(cmValue.z), r: Float(cmValue.w))
}
#endif // !TARGET_OS_TV
#endif // !tvOS



#if !TARGET_OS_WATCH
#if !os(watchOS)
// MARK: GameController Conversion

/// Converts a `FloatQuaternion` struct to `GCQuaternion` struct using passing-individual-members initialization.
Expand All @@ -104,4 +104,4 @@ public struct FloatQuaternion
@_transparent public func FloatQuaternionFromGC(_ gcValue:GCQuaternion) -> FloatQuaternion {
return FloatQuaternion(ix: Float(gcValue.x), iy: Float(gcValue.y), iz: Float(gcValue.z), r: Float(gcValue.w))
}
#endif // !TARGET_OS_WATCH
#endif // !watchOS

0 comments on commit a88a765

Please sign in to comment.