From 593b658eb1491d4b3103971aba6592aff2765f0e Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 8 Sep 2025 01:46:00 +0800 Subject: Fix some compile errors on Windows. --- include/cru/base/platform/win/DebugLogTarget.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'include/cru/base/platform/win/DebugLogTarget.h') diff --git a/include/cru/base/platform/win/DebugLogTarget.h b/include/cru/base/platform/win/DebugLogTarget.h index 5f000d94..cabfa7e5 100644 --- a/include/cru/base/platform/win/DebugLogTarget.h +++ b/include/cru/base/platform/win/DebugLogTarget.h @@ -1,6 +1,8 @@ #pragma once -#ifdef CRU_PLATFORM_WINDOWS +#ifndef _WIN32 +#error "This file can only be used on Windows." +#endif #include "WinPreConfig.h" @@ -10,15 +12,6 @@ namespace cru::platform::win { class CRU_BASE_API WinDebugLogTarget : public ::cru::log::ILogTarget { public: - WinDebugLogTarget() = default; - - CRU_DELETE_COPY(WinDebugLogTarget) - CRU_DELETE_MOVE(WinDebugLogTarget) - - ~WinDebugLogTarget() = default; - - void Write(::cru::log::LogLevel level, StringView s) override; + void Write(::cru::log::LogLevel level, std::string s) override; }; } // namespace cru::platform::win - -#endif -- cgit v1.2.3