summaryrefslogtreecommitdiff
path: root/indra/llfilesystem/lldirguard.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-09-03 20:30:12 +0300
committerGitHub <noreply@github.com>2025-09-03 20:30:12 +0300
commit90aa693f2a9ece9f1c624dba245f202e126bca5b (patch)
treefae8bca7bb3f3ac05972803e2fefc05de8542408 /indra/llfilesystem/lldirguard.h
parent5593cde0e85d4d4b06efacffb6f00ed2fadb188a (diff)
parent5ffcd3dc88892a651fe9a95974280efb85e18a8b (diff)
Merge Changes for support of apple silicon on macOS
Mac Arm
Diffstat (limited to 'indra/llfilesystem/lldirguard.h')
-rw-r--r--indra/llfilesystem/lldirguard.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llfilesystem/lldirguard.h b/indra/llfilesystem/lldirguard.h
index fcb179bbc8..c6ce13efb4 100644
--- a/indra/llfilesystem/lldirguard.h
+++ b/indra/llfilesystem/lldirguard.h
@@ -31,6 +31,9 @@
#include "llerror.h"
#if LL_WINDOWS
+
+#include "llwin32headers.h"
+
class LLDirectoryGuard
{
public:
@@ -46,8 +49,8 @@ public:
(wcsncmp(mOrigDir,mFinalDir,mOrigDirLen)!=0))
{
// Dir has changed
- std::string mOrigDirUtf8 = utf16str_to_utf8str(llutf16string(mOrigDir));
- std::string mFinalDirUtf8 = utf16str_to_utf8str(llutf16string(mFinalDir));
+ std::string mOrigDirUtf8 = ll_convert<std::string>(std::wstring(mOrigDir));
+ std::string mFinalDirUtf8 = ll_convert<std::string>(std::wstring(mFinalDir));
LL_INFOS() << "Resetting working dir from " << mFinalDirUtf8 << " to " << mOrigDirUtf8 << LL_ENDL;
SetCurrentDirectory(mOrigDir);
}