From fe304096fa30583f3cc2ebfdbf564d2b4081e2ad Mon Sep 17 00:00:00 2001 From: alvinhochun Date: Wed, 4 Jan 2023 01:33:53 +0800 Subject: [PATCH] Make headers partially usable with LLVM/libc++ 13 (#1257) --- strings/base_string.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strings/base_string.h b/strings/base_string.h index 2a6023a26..2782968b8 100644 --- a/strings/base_string.h +++ b/strings/base_string.h @@ -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); @@ -651,6 +652,7 @@ WINRT_EXPORT namespace winrt { return impl::hstring_convert(value); } +#endif inline hstring to_hstring(char16_t value) {