diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-08 01:46:00 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-08 21:34:37 +0800 |
commit | 593b658eb1491d4b3103971aba6592aff2765f0e (patch) | |
tree | 526bc88c6a895c215015926c90ff38c106a94604 /src/base/platform/win/DebugLogTarget.cpp | |
parent | df550874cd546a85074edc35bebeb3cd0530622b (diff) | |
download | cru-593b658eb1491d4b3103971aba6592aff2765f0e.tar.gz cru-593b658eb1491d4b3103971aba6592aff2765f0e.tar.bz2 cru-593b658eb1491d4b3103971aba6592aff2765f0e.zip |
Fix some compile errors on Windows.
Diffstat (limited to 'src/base/platform/win/DebugLogTarget.cpp')
-rw-r--r-- | src/base/platform/win/DebugLogTarget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/platform/win/DebugLogTarget.cpp b/src/base/platform/win/DebugLogTarget.cpp index 89bd3d19..afbab620 100644 --- a/src/base/platform/win/DebugLogTarget.cpp +++ b/src/base/platform/win/DebugLogTarget.cpp @@ -1,10 +1,12 @@ #include "cru/base/platform/win/DebugLogTarget.h" +#include "cru/base/String.h" + namespace cru::platform::win { -void WinDebugLogTarget::Write(::cru::log::LogLevel level, StringView s) { +void WinDebugLogTarget::Write(::cru::log::LogLevel level, std::string s) { CRU_UNUSED(level) - String m = s.ToString(); + String m = String::FromUtf8(s); ::OutputDebugStringW(reinterpret_cast<const wchar_t*>(m.c_str())); } } // namespace cru::platform::win |