Skip to content

Commit 6f0d36a

Browse files
committed
Make sure we get typealias Float16 = Half when we need it
1 parent d1f6ae0 commit 6f0d36a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/CBORCoding/Half.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Foundation
22

3-
#if canImport(Half) && swift(<5.3)
3+
#if canImport(Half) && swift(<5.3) || (
4+
os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64)
45
import Half
56

67
typealias Float16 = Half

0 commit comments

Comments
 (0)