File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,15 @@ typedef enum __swift_stdlib_UBreakIteratorType {
294
294
} __swift_stdlib_UBreakIteratorType;
295
295
296
296
typedef struct __swift_stdlib_UBreakIterator __swift_stdlib_UBreakIterator;
297
+ #if defined(__APPLE__)
297
298
typedef __swift_uint16_t __swift_stdlib_UChar;
299
+ #else
300
+ #if defined(__cplusplus)
301
+ typedef char16_t __swift_stdlib_UChar;
302
+ #else
303
+ typedef __swift_uint16_t __swift_stdlib_UChar;
304
+ #endif
305
+ #endif
298
306
299
307
SWIFT_RUNTIME_STDLIB_INTERFACE
300
308
void __swift_stdlib_ubrk_close (__swift_stdlib_UBreakIterator *bi);
Original file line number Diff line number Diff line change @@ -301,7 +301,8 @@ void swift::__swift_stdlib_ubrk_close(
301
301
302
302
swift::__swift_stdlib_UBreakIterator *swift::__swift_stdlib_ubrk_open (
303
303
swift::__swift_stdlib_UBreakIteratorType type, const char *locale,
304
- const uint16_t *text, int32_t textLength, __swift_stdlib_UErrorCode *status) {
304
+ const __swift_stdlib_UChar *text, int32_t textLength,
305
+ __swift_stdlib_UErrorCode *status) {
305
306
return ptr_cast<swift::__swift_stdlib_UBreakIterator>(
306
307
ubrk_open (static_cast <UBreakIteratorType>(type), locale,
307
308
reinterpret_cast <const UChar *>(text), textLength,
You can’t perform that action at this time.
0 commit comments