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 /include/cru/base/platform/win/DebugLogTarget.h | |
| parent | df550874cd546a85074edc35bebeb3cd0530622b (diff) | |
| download | cru-593b658eb1491d4b3103971aba6592aff2765f0e.tar.gz cru-593b658eb1491d4b3103971aba6592aff2765f0e.tar.bz2 cru-593b658eb1491d4b3103971aba6592aff2765f0e.zip | |
Fix some compile errors on Windows.
Diffstat (limited to 'include/cru/base/platform/win/DebugLogTarget.h')
| -rw-r--r-- | include/cru/base/platform/win/DebugLogTarget.h | 15 |
1 files changed, 4 insertions, 11 deletions
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 |
