Skip to content

Commit

Permalink
Make headers partially usable with LLVM/libc++ 13 (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinhochun authored Jan 3, 2023
1 parent 0214f2f commit fe30409
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions strings/base_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ WINRT_EXPORT namespace winrt
return impl::hstring_convert(value);
}

#if !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION >= 14000
inline hstring to_hstring(float value)
{
return impl::hstring_convert(value);
Expand All @@ -651,6 +652,7 @@ WINRT_EXPORT namespace winrt
{
return impl::hstring_convert(value);
}
#endif

inline hstring to_hstring(char16_t value)
{
Expand Down

0 comments on commit fe30409

Please sign in to comment.