diff --git a/third_party/icu/source/common/unicode/umachine.h b/third_party/icu/source/common/unicode/umachine.h index 7e09828e1f08..b15214828511 100644 --- a/third_party/icu/source/common/unicode/umachine.h +++ b/third_party/icu/source/common/unicode/umachine.h @@ -414,14 +414,14 @@ typedef int8_t UBool; defined(U_I18N_IMPLEMENTATION) || defined(U_IO_IMPLEMENTATION) // Inside the ICU library code, never configurable. typedef char16_t UChar; -#elif defined(STARBOARD) && U_SIZEOF_WCHAR_T==2 - typedef wchar_t UChar; -#elif defined(STARBOARD) && U_SIZEOF_WCHAR_T==4 - typedef uint16_t UChar; #elif defined(UCHAR_TYPE) typedef UCHAR_TYPE UChar; #elif (U_CPLUSPLUS_VERSION >= 11) typedef char16_t UChar; +#elif defined(STARBOARD) && U_SIZEOF_WCHAR_T==2 + typedef wchar_t UChar; +#elif defined(STARBOARD) && U_SIZEOF_WCHAR_T==4 + typedef uint16_t UChar; #else typedef uint16_t UChar; #endif diff --git a/third_party/icu/source/common/unicode/unistr.h b/third_party/icu/source/common/unicode/unistr.h index 456389f265fe..240ccb5b8f70 100644 --- a/third_party/icu/source/common/unicode/unistr.h +++ b/third_party/icu/source/common/unicode/unistr.h @@ -3153,7 +3153,7 @@ class U_COMMON_API UnicodeString : public Replaceable */ inline UnicodeString(std::nullptr_t buffer, int32_t buffLength, int32_t buffCapacity); -#if U_CHARSET_IS_UTF8 || !UCONFIG_NO_CONVERSION +#if U_CHARSET_IS_UTF8 || !UCONFIG_NO_CONVERSION || 1 /** * char* constructor.