From e1b3244174006a53c35946b6feb276745ef45106 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 30 Sep 2024 00:09:05 -0600 Subject: [PATCH] Explicitly mark rstl::wstring_l weak for now --- include/rstl/string.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/rstl/string.hpp b/include/rstl/string.hpp index ad6ac039..75bbb225 100644 --- a/include/rstl/string.hpp +++ b/include/rstl/string.hpp @@ -138,7 +138,14 @@ bool basic_string< _CharTp, Traits, Alloc >::operator<(const basic_string& other typedef basic_string< wchar_t > wstring; typedef basic_string< char > string; -wstring wstring_l(const wchar_t* data) { return wstring(wstring::literal_t(), data); } +#ifdef __MWERKS__ +__declspec(weak) // TODO +#else +static +#endif +wstring wstring_l(const wchar_t* data) { + return wstring(wstring::literal_t(), data); +} string string_l(const char* data); // {