Skip to content

Commit bc1656d

Browse files
committed
Replace dynamic _icu* functions only if !FOUNDATION_FRAMEWORK.
In response to: #1296 (comment)
1 parent 9733097 commit bc1656d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/FoundationInternationalization/ICU/ICU+StringConverter.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ extension ICU.StringConverter {
172172
}
173173

174174

175+
#if !FOUNDATION_FRAMEWORK
175176
@_dynamicReplacement(for: _icuMakeStringFromBytes(_:encoding:))
176177
func _icuMakeStringFromBytes_impl(_ bytes: UnsafeBufferPointer<UInt8>, encoding: String.Encoding) -> String? {
177178
guard let converter = ICU.StringConverter.converter(for: encoding),
@@ -202,3 +203,4 @@ func _icuStringEncodingConvert_impl(string: String, using encoding: String.Encod
202203
}
203204
return converter.encode(string: string, allowLossyConversion: allowLossyConversion)
204205
}
206+
#endif

0 commit comments

Comments
 (0)