Skip to content

Commit a337e72

Browse files
committed
Try to fix up the availability of the Swift and C projections of the legacy ABI
1 parent e943878 commit a337e72

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

stdlib/public/core/FloatingPointToString.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
#if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
131131

132132
// Support Legacy ABI on top of new implementation
133-
@available(SwiftStdlib 6.2, *)
133+
@available(SwiftStdlib 5.3, *)
134134
@_silgen_name("swift_float16ToString")
135135
public func _float16ToStringImpl(
136136
_ textBuffer: UnsafeMutablePointer<UTF8.CodeUnit>,
@@ -420,7 +420,8 @@ internal func _Float16ToASCII(
420420

421421
// Support Legacy ABI on top of new implementation
422422
@_silgen_name("swift_float32ToString")
423-
public func _float32ToStringImpl(
423+
@usableFromInline
424+
func _float32ToStringImpl(
424425
_ textBuffer: UnsafeMutablePointer<UTF8.CodeUnit>,
425426
_ bufferLength: UInt,
426427
_ value: Float32,
@@ -672,7 +673,8 @@ internal func _Float32ToASCII(
672673

673674
// Support Legacy ABI on top of new implementation
674675
@_silgen_name("swift_float64ToString")
675-
public func _float64ToStringImpl(
676+
@usableFromInline
677+
func _float64ToStringImpl(
676678
_ textBuffer: UnsafeMutablePointer<UTF8.CodeUnit>,
677679
_ bufferLength: UInt,
678680
_ value: Float64,
@@ -1179,7 +1181,8 @@ internal func _Float64ToASCII(
11791181

11801182
// Support Legacy ABI on top of new implementation
11811183
@_silgen_name("swift_float80ToString")
1182-
internal func _float80ToStringImpl(
1184+
@usableFromInline
1185+
func _float80ToStringImpl(
11831186
_ textBuffer: UnsafeMutablePointer<UTF8.CodeUnit>,
11841187
_ bufferLength: UInt,
11851188
_ value: Float80,

0 commit comments

Comments
 (0)