From ca9334f53b9456a517f8fa4a687e2d2a6cc1ca86 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 22:57:30 +0800 Subject: Fix windows build. --- src/base/platform/win/DebugLogTarget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/platform/win/DebugLogTarget.cpp') diff --git a/src/base/platform/win/DebugLogTarget.cpp b/src/base/platform/win/DebugLogTarget.cpp index afbab620..3b73b332 100644 --- a/src/base/platform/win/DebugLogTarget.cpp +++ b/src/base/platform/win/DebugLogTarget.cpp @@ -1,12 +1,12 @@ #include "cru/base/platform/win/DebugLogTarget.h" -#include "cru/base/String.h" +#include "cru/base/StringUtil.h" namespace cru::platform::win { void WinDebugLogTarget::Write(::cru::log::LogLevel level, std::string s) { CRU_UNUSED(level) - String m = String::FromUtf8(s); + std::wstring m = string::ToUtf16(s); ::OutputDebugStringW(reinterpret_cast(m.c_str())); } } // namespace cru::platform::win -- cgit v1.2.3