From 1cd2a89bd82a3c35dc4fd21d32211d8f81817050 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Fri, 13 Jun 2025 04:11:39 +0200 Subject: Fix implicit instantiation of undefined template 'std::char_traits' on FreeBSD. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282329 --- indra/llcommon/llstring.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/llcommon/llstring.h') diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h index 7a8edc176d..2e579a4d2d 100644 --- a/indra/llcommon/llstring.h +++ b/indra/llcommon/llstring.h @@ -635,7 +635,11 @@ LL_COMMON_API std::string rawstr_to_utf8(const std::string& raw); // // This typedef may or may not be identical to std::wstring, depending on // LL_WCHAR_T_NATIVE. +#if __FreeBSD__ +typedef std::basic_string llutf16string; +#else typedef std::basic_string llutf16string; +#endif // Considering wchar_t, llwchar and U16, there are three relevant cases: #if LLWCHAR_IS_WCHAR_T // every which way but Windows -- cgit v1.2.3